Suppress pipe stripping client side.
This commit is contained in:
parent
cd9cd11134
commit
ff20f682fc
1 changed files with 3 additions and 3 deletions
|
@ -315,8 +315,8 @@ public class BlockGenericPipe extends BlockContainer implements
|
|||
(entityplayer.getCurrentEquippedItem() == null
|
||||
|| !(entityplayer.getCurrentEquippedItem().getItem() instanceof IToolWrench))) {
|
||||
|
||||
if(pipe.hasGate()
|
||||
|| pipe.isWired())
|
||||
if(!APIProxy.isRemote()
|
||||
&& (pipe.hasGate() || pipe.isWired()))
|
||||
return stripEquipment(pipe);
|
||||
|
||||
} else if (entityplayer.getCurrentEquippedItem() == null) {
|
||||
|
@ -384,7 +384,7 @@ public class BlockGenericPipe extends BlockContainer implements
|
|||
}
|
||||
|
||||
private boolean stripEquipment(Pipe pipe) {
|
||||
|
||||
|
||||
// Try to strip wires first, starting with yellow.
|
||||
for(IPipe.WireColor color : IPipe.WireColor.values())
|
||||
if(pipe.wireSet[color.reverse().ordinal()]) {
|
||||
|
|
Loading…
Reference in a new issue