Prevent Iron Pipes from switching to a plugged side
This commit is contained in:
parent
e825066fd0
commit
91e5648903
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ public abstract class PipeLogicIron {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
TileEntity tile = tileBuffer[side.ordinal()].getTile();
|
TileEntity tile = tileBuffer[side.ordinal()].getTile();
|
||||||
|
if ((pipe.container.hasPlug(side)) || (tile != null && tile instanceof TileGenericPipe && ((TileGenericPipe)tile).pipe.container.hasPlug(side.getOpposite())))
|
||||||
|
return false;
|
||||||
return isValidConnectingTile(tile);
|
return isValidConnectingTile(tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue