From f5443becf8f4c88a4879b45bdb62702de6a308d8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 28 Aug 2020 00:33:34 +0200 Subject: [PATCH] made PipeBlock#getConnectionType not static --- src/main/java/de/ellpeck/prettypipes/pipe/PipeBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;