diff options
| author | GlodBlock <60341015+GlodBlock@users.noreply.github.com> | 2021-08-11 19:11:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 19:11:57 +0800 |
| commit | 59c6032ac47c49881d766c70668e661fe778cf94 (patch) | |
| tree | 4f207890af772596b52aa1997245be529751a180 /src/main/java/com | |
| parent | ae080d03b2db755c96330717178c95f4cf8f8907 (diff) | |
| download | GT5-Unofficial-59c6032ac47c49881d766c70668e661fe778cf94.tar.gz GT5-Unofficial-59c6032ac47c49881d766c70668e661fe778cf94.tar.bz2 GT5-Unofficial-59c6032ac47c49881d766c70668e661fe778cf94.zip | |
add another check for oredict
Former-commit-id: 934612d5628464733524eb0870d889eaff997978
Diffstat (limited to 'src/main/java/com')
| -rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java | 2 |
1 files changed, 1 insertions, 1 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 df268df8aa..74a40e6a28 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 @@ -88,7 +88,7 @@ public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks imple protected void doRegistrationStuff(Werkstoff tMaterial) { GregTech_API.registerMachineBlock(this, -1); if (tMaterial == null) return; - if (tMaterial.hasItemType(OrePrefixes.plate) && tMaterial.hasItemType(OrePrefixes.gearGtSmall)) { + if ((tMaterial.doesOreDictedItemExists(OrePrefixes.plate) && tMaterial.doesOreDictedItemExists(OrePrefixes.gearGtSmall)) || (tMaterial.hasItemType(OrePrefixes.plate) && tMaterial.hasItemType(OrePrefixes.gearGtSmall))) { Optional.of(tMaterial) .ifPresent(pMaterial -> GT_LanguageManager.addStringLocalization( |
