From b8dcf8f77993de9e2d363687529f14679d733651 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Fri, 6 Jul 2018 06:24:07 +1000 Subject: % Allowed covers on Adv. Boilers, Semi-Fluid Generators & Energy Buffers. Closes #325. --- .../common/tileentities/storage/GregtechMetaEnergyBuffer.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java index 22cace9cff..52c1c8818a 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java @@ -14,6 +14,7 @@ import gregtech.api.gui.GT_GUIContainer_1by1; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.objects.GT_ItemStack; import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Utility; @@ -42,6 +43,14 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity { public String[] getDescription() { return new String[] {this.mDescription, "Accepts/Outputs 4Amp", CORE.GT_Tooltip}; } + + @Override + public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCover) { + if (aSide != this.getBaseMetaTileEntity().getFrontFacing()) { + return true; + } + return super.allowCoverOnSide(aSide, aCover); + } /* * MACHINE_STEEL_SIDE -- cgit