mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 23:39:22 +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,8 +147,9 @@ 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)
|
||||
state = state.with(prop, type);
|
||||
if (type.isConnected() && curr.get(prop) == ConnectionType.BLOCKED)
|
||||
type = ConnectionType.BLOCKED;
|
||||
state = state.with(prop, type);
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue