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()]) { if (!CoreProxy.proxy.isRenderWorld(pipe.container.worldObj)) { dropWire(color.reverse(), pipe); } pipe.wireSet[color.reverse().ordinal()] = false; // pipe.worldObj.markBlockNeedsUpdate(pipe.xCoord, pipe.yCoord, pipe.zCoord); pipe.container.scheduleRenderUpdate(); return true; } } // Try to strip gate next if (pipe.hasGate()) { if (!CoreProxy.proxy.isRenderWorld(pipe.container.worldObj)) { pipe.gate.dropGate(); } pipe.resetGate(); return true; } return false; }