mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 19:58:35 +01:00
fixed pipes reconnecting when they shouldn't
This commit is contained in:
parent
871995e807
commit
9b28509542
1 changed files with 3 additions and 2 deletions
|
@ -147,7 +147,8 @@ public class PipeBlock extends ContainerBlock implements IPipeConnectable {
|
|||
EnumProperty<ConnectionType> prop = DIRECTIONS.get(dir);
|
||||
ConnectionType type = getConnectionType(world, pos, dir, state);
|
||||
// don't reconnect on blocked faces
|
||||
if (!type.isConnected() || curr.get(prop) != ConnectionType.BLOCKED)
|
||||
if (type.isConnected() && curr.get(prop) == ConnectionType.BLOCKED)
|
||||
type = ConnectionType.BLOCKED;
|
||||
state = state.with(prop, type);
|
||||
}
|
||||
return state;
|
||||
|
|
Loading…
Reference in a new issue