diff --git a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlock.java b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlock.java index cb2613e..0531b40 100644 --- a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlock.java +++ b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlock.java @@ -157,7 +157,7 @@ public class PipeBlock extends ContainerBlock implements IPipeConnectable { for (Direction dir : Direction.values()) { EnumProperty prop = DIRECTIONS.get(dir); - ConnectionType type = getConnectionType(world, pos, dir, state); + ConnectionType type = this.getConnectionType(world, pos, dir, state); // don't reconnect on blocked faces if (type.isConnected() && curr.get(prop) == ConnectionType.BLOCKED) type = ConnectionType.BLOCKED; @@ -166,7 +166,7 @@ public class PipeBlock extends ContainerBlock implements IPipeConnectable { return state; } - protected static ConnectionType getConnectionType(World world, BlockPos pos, Direction direction, BlockState state) { + protected ConnectionType getConnectionType(World world, BlockPos pos, Direction direction, BlockState state) { BlockPos offset = pos.offset(direction); if (!world.isBlockLoaded(offset)) return ConnectionType.DISCONNECTED;