diff options
author | Ryan Nasers <42074409+Cardinalstars@users.noreply.github.com> | 2024-08-05 03:30:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 15:30:58 +0700 |
commit | 1ab7b9dbcbf375ceff1449502acd0f873f2da51a (patch) | |
tree | 0b68625e6e1ab655ca6892272211fb4bb4a79cd1 /src/main/java/gregtech/common | |
parent | 5c9c4000c6130bd44ad43204dd6220dcda401c10 (diff) | |
download | GT5-Unofficial-1ab7b9dbcbf375ceff1449502acd0f873f2da51a.tar.gz GT5-Unofficial-1ab7b9dbcbf375ceff1449502acd0f873f2da51a.tar.bz2 GT5-Unofficial-1ab7b9dbcbf375ceff1449502acd0f873f2da51a.zip |
Adding some stuff I removed long ago (#2702)
* Adding back in stuff I removed
* Fixing connections
* Idk what this was
* Spotless
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/blocks/GT_Block_Machines.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java index 3d24799746..dad96c9222 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -53,6 +53,7 @@ import gregtech.api.util.GT_Utility; import gregtech.common.covers.CoverInfo; import gregtech.common.render.GT_Renderer_Block; import gregtech.common.tileentities.storage.GT_MetaTileEntity_QuantumChest; +import gtPlusPlus.xmod.gregtech.common.tileentities.redstone.GT_MetaTileEntity_RedstoneBase; @Optional.Interface(iface = "com.cricketcraft.chisel.api.IFacade", modid = "ChiselAPI") public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlock, ITileEntityProvider, IFacade { @@ -169,8 +170,8 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo default -> ForgeDirection.UNKNOWN; }; final TileEntity machineEntity = aWorld.getTileEntity(aX, aY, aZ); - return machineEntity instanceof CoverableTileEntity cte && cte.getCoverInfoAtSide(forgeSide) - .getCoverID() != 0; + return machineEntity instanceof BaseMetaTileEntity bmte && (bmte.getCoverInfoAtSide(forgeSide) + .getCoverID() != 0 || bmte.getMetaTileEntity() instanceof GT_MetaTileEntity_RedstoneBase); } @Override |