From 3f5623da83ce8e24fc75f86ad73f107b18fbc46e Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Sat, 12 Jan 2019 14:28:13 +0000 Subject: + 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. --- .../implementations/base/GregtechMeta_MultiBlockBase.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api') 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); -- cgit