Merge pull request #1597 from Invincible92/unstable

1st attempt on fixing small boilers automation. Seems to work correctly
This commit is contained in:
Alkalus 2022-08-22 20:51:52 +01:00 committed by GitHub
commit 364e996bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,14 +255,14 @@ public abstract class GT_MetaTileEntity_Boiler
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
if (GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation) if (GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation)
return true; return aIndex == 1 || aIndex == 3;
else else
return false; return false;
} }
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) { public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
if(GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation) if(GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation)
return true; return aIndex == 2;
else else
return false; return false;
} }