Merge pull request #1541 from bartimaeusnek/patch-2

Added BartWorks integration for BasicMachine recipes
This commit is contained in:
Alkalus 2020-04-06 21:41:37 +01:00 committed by GitHub
commit 34ab089c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,17 +72,28 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
}
if (aRecipe[i] == X.GLASS) {
switch (mTier) {
case 6:
case 7:
case 8:
aRecipe[i] = Ic2Items.reinforcedGlass;
break;
default:
aRecipe[i] = new ItemStack(Blocks.glass, 1, W);
break;
if (Loader.isModLoaded("bartworks"){
if (mTier>=8)
aRecipe[i] = "blockGlass"+VN[8];
else if (mTier < 3)
aRecipe[i] = "blockGlass"+VN[3];
else
aRecipe[i] = "blockGlass"+VN[mTier];
continue;
}
else {
switch (mTier) {
case 6:
case 7:
case 8:
aRecipe[i] = Ic2Items.reinforcedGlass;
break;
default:
aRecipe[i] = new ItemStack(Blocks.glass, 1, W);
break;
}
continue;
}
continue;
}
if (aRecipe[i] == X.PLATE) {