Add config for Small Boiler Automation (#1449)
* Add config for Small Boiler Automation Default is off * Update GT_Mod.java * Update GT_Mod.java * Update GT_MetaTileEntity_Boiler.java Fixed retarded logic
This commit is contained in:
parent
02b24ba235
commit
eef9513ef2
3 changed files with 11 additions and 2 deletions
|
@ -221,6 +221,7 @@ public class GT_Mod implements IGT_Mod {
|
||||||
gregtechproxy.mFlintChance = tMainConfig.get(aTextGeneral, "FlintAndSteelChance", 30).getInt(30);
|
gregtechproxy.mFlintChance = tMainConfig.get(aTextGeneral, "FlintAndSteelChance", 30).getInt(30);
|
||||||
gregtechproxy.mItemDespawnTime = tMainConfig.get(aTextGeneral, "ItemDespawnTime", 6000).getInt(6000);
|
gregtechproxy.mItemDespawnTime = tMainConfig.get(aTextGeneral, "ItemDespawnTime", 6000).getInt(6000);
|
||||||
gregtechproxy.mNerfStorageBlocks = tMainConfig.get(aTextGeneral,"NerfStorageBlocks",true).getBoolean(true);
|
gregtechproxy.mNerfStorageBlocks = tMainConfig.get(aTextGeneral,"NerfStorageBlocks",true).getBoolean(true);
|
||||||
|
gregtechproxy.mAllowSmallBoilerAutomation = tMainConfig.get(aTextGeneral,"AllowSmallBoilerAutomation",false).getBoolean(false);
|
||||||
gregtechproxy.mHardMachineCasings= tMainConfig.get(aTextGeneral,"HardMachineCasings",true).getBoolean(true);
|
gregtechproxy.mHardMachineCasings= tMainConfig.get(aTextGeneral,"HardMachineCasings",true).getBoolean(true);
|
||||||
gregtechproxy.mDisableVanillaOres = tMainConfig.get(aTextGeneral, "DisableVanillaOres", true).getBoolean(true);
|
gregtechproxy.mDisableVanillaOres = tMainConfig.get(aTextGeneral, "DisableVanillaOres", true).getBoolean(true);
|
||||||
gregtechproxy.mNerfDustCrafting = tMainConfig.get(aTextGeneral, "NerfDustCrafting", true).getBoolean(true);
|
gregtechproxy.mNerfDustCrafting = tMainConfig.get(aTextGeneral, "NerfDustCrafting", true).getBoolean(true);
|
||||||
|
|
|
@ -136,6 +136,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
||||||
public boolean mDisableVanillaOres = true;
|
public boolean mDisableVanillaOres = true;
|
||||||
public boolean mNerfStorageBlocks = true;
|
public boolean mNerfStorageBlocks = true;
|
||||||
public boolean mHardMachineCasings = true;
|
public boolean mHardMachineCasings = true;
|
||||||
|
public boolean mAllowSmallBoilerAutomation = false;
|
||||||
public boolean mNerfDustCrafting = true;
|
public boolean mNerfDustCrafting = true;
|
||||||
public boolean mSortToTheEnd = true;
|
public boolean mSortToTheEnd = true;
|
||||||
public boolean mCraftingUnification = true;
|
public boolean mCraftingUnification = true;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package gregtech.common.tileentities.boilers;
|
package gregtech.common.tileentities.boilers;
|
||||||
|
|
||||||
|
import gregtech.GT_Mod;
|
||||||
import gregtech.api.GregTech_API;
|
import gregtech.api.GregTech_API;
|
||||||
import gregtech.api.enums.Materials;
|
import gregtech.api.enums.Materials;
|
||||||
import gregtech.api.enums.OrePrefixes;
|
import gregtech.api.enums.OrePrefixes;
|
||||||
|
@ -253,11 +254,17 @@ 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) {
|
||||||
return false;
|
if (GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation)
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||||
return false;
|
if(GT_Mod.gregtechproxy.mAllowSmallBoilerAutomation)
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doSound(byte aIndex, double aX, double aY, double aZ) {
|
public void doSound(byte aIndex, double aX, double aY, double aZ) {
|
||||||
|
|
Loading…
Reference in a new issue