mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Added checks for is block loaded to several methods (#5533)
This commit is contained in:
1 parent
d217a545ca
commit
de705af546
16 files changed
+116
-71
No files matched your search
@@ -64,7 +64,7 @@ public final class CableUtils {
|
||||
public static TileEntity[] getConnectedOutputters(BlockPos pos, World world) {
|
||||
TileEntity[] outputters = new TileEntity[]{null, null, null, null, null, null};
|
||||
for (EnumFacing orientation : EnumFacing.VALUES) {
|
||||
TileEntity outputter = world.getTileEntity(pos.offset(orientation));
|
||||
final TileEntity outputter = MekanismUtils.getTileEntity(world, pos.offset(orientation));
|
||||
if (isOutputter(outputter, orientation)) {
|
||||
outputters[orientation.ordinal()] = outputter;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user