diff options
author | GlodBlock <60341015+GlodBlock@users.noreply.github.com> | 2021-08-10 21:06:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 21:06:54 +0800 |
commit | ae080d03b2db755c96330717178c95f4cf8f8907 (patch) | |
tree | 8317390a658b44704120de687e4cf75de643f0df | |
parent | 3fa88d84850800d55859e20e8444083546dbba71 (diff) | |
download | GT5-Unofficial-ae080d03b2db755c96330717178c95f4cf8f8907.tar.gz GT5-Unofficial-ae080d03b2db755c96330717178c95f4cf8f8907.tar.bz2 GT5-Unofficial-ae080d03b2db755c96330717178c95f4cf8f8907.zip |
stop it generating shit in GregTech.lang
Former-commit-id: dd09c2b8efd59ee944c04b0008992eee16d48a23
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java index cfe8b2f28f..df268df8aa 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java @@ -87,13 +87,16 @@ public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks imple @Override protected void doRegistrationStuff(Werkstoff tMaterial) { GregTech_API.registerMachineBlock(this, -1); - Optional.ofNullable(tMaterial) - .ifPresent(pMaterial -> + if (tMaterial == null) return; + if (tMaterial.hasItemType(OrePrefixes.plate) && tMaterial.hasItemType(OrePrefixes.gearGtSmall)) { + Optional.of(tMaterial) + .ifPresent(pMaterial -> GT_LanguageManager.addStringLocalization( this.getUnlocalizedName() + "." + pMaterial.getmID() + ".name", _prefixes.mLocalizedMaterialPre + pMaterial.getDefaultName() + _prefixes.mLocalizedMaterialPost ) - ); + ); + } } @Override @@ -139,4 +142,4 @@ public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks imple .map(te -> (BW_MetaGenerated_Block_TE) te) .ifPresent(te -> te.mMetaData = (short) meta); } -}
\ No newline at end of file +} |