diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-01-12 14:28:13 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-01-12 14:28:13 +0000 |
commit | 3f5623da83ce8e24fc75f86ad73f107b18fbc46e (patch) | |
tree | f2044bca499717cdb9ac9bb64a6af624ba3c4f2f /src/Java/gtPlusPlus/xmod/gregtech/api | |
parent | fa48c685d717e386e1d656dd4962efeb9d1a3ed2 (diff) | |
download | GT5-Unofficial-3f5623da83ce8e24fc75f86ad73f107b18fbc46e.tar.gz GT5-Unofficial-3f5623da83ce8e24fc75f86ad73f107b18fbc46e.tar.bz2 GT5-Unofficial-3f5623da83ce8e24fc75f86ad73f107b18fbc46e.zip |
+ Added the Control Core check to the structure check, your Multiblock will no longer form without a Valid Core Module.
+ Added valid English names to the en_US.lang for the Auto-Doors.
$ Hopefully fixed a bug where the Adv. Ebf would run without Pyrotheum.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java index 983c9d0936..c288fac496 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java @@ -408,8 +408,8 @@ public boolean canBufferOutputs(final GT_Recipe aRecipe, int aParallelRecipes) { public static Method aLogger = null; public void log(String s) { - boolean isDebugLogging = CORE.DEBUG || true; - boolean reset = true; + boolean isDebugLogging = CORE.DEBUG; + boolean reset = false; if (aLogger == null || reset) { if (isDebugLogging) { try { @@ -1456,6 +1456,13 @@ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlaye } +public final boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { + boolean aStructureCheck = checkMultiblock(aBaseMetaTileEntity, aStack); + boolean aHasCore = this.getControlCoreBus() != null; + return aStructureCheck && aHasCore; +} + +public abstract boolean checkMultiblock(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack); |