From e209377ee635e53e6b47efd9ec3d0db95ebd4ec3 Mon Sep 17 00:00:00 2001 From: aznhe21 Date: Mon, 3 Dec 2012 18:51:12 +0900 Subject: [PATCH] Fixed wire not updating. --- .../buildcraft/transport/BlockGenericPipe.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/buildcraft/transport/BlockGenericPipe.java b/common/buildcraft/transport/BlockGenericPipe.java index 628c7fda..f6efb002 100644 --- a/common/buildcraft/transport/BlockGenericPipe.java +++ b/common/buildcraft/transport/BlockGenericPipe.java @@ -386,9 +386,8 @@ public class BlockGenericPipe extends BlockContainer { pipe.wireSet[IPipe.WireColor.Red.ordinal()] = true; if (!entityplayer.capabilities.isCreativeMode) entityplayer.getCurrentEquippedItem().splitStack(1); - pipe.container.scheduleRenderUpdate(); - //world.markBlockNeedsUpdate(i, j, k); - + pipe.signalStrength[IPipe.WireColor.Red.ordinal()] = 0; + pipe.container.scheduleNeighborChange(); return true; } } else if (entityplayer.getCurrentEquippedItem().getItem() == BuildCraftTransport.bluePipeWire) { @@ -396,9 +395,8 @@ public class BlockGenericPipe extends BlockContainer { pipe.wireSet[IPipe.WireColor.Blue.ordinal()] = true; if (!entityplayer.capabilities.isCreativeMode) entityplayer.getCurrentEquippedItem().splitStack(1); - pipe.container.scheduleRenderUpdate(); - //world.markBlockNeedsUpdate(i, j, k); - + pipe.signalStrength[IPipe.WireColor.Blue.ordinal()] = 0; + pipe.container.scheduleNeighborChange(); return true; } } else if (entityplayer.getCurrentEquippedItem().getItem() == BuildCraftTransport.greenPipeWire) { @@ -406,7 +404,8 @@ public class BlockGenericPipe extends BlockContainer { pipe.wireSet[IPipe.WireColor.Green.ordinal()] = true; if (!entityplayer.capabilities.isCreativeMode) entityplayer.getCurrentEquippedItem().splitStack(1); - pipe.container.scheduleRenderUpdate(); + pipe.signalStrength[IPipe.WireColor.Green.ordinal()] = 0; + pipe.container.scheduleNeighborChange(); return true; } } else if (entityplayer.getCurrentEquippedItem().getItem() == BuildCraftTransport.yellowPipeWire) { @@ -414,7 +413,8 @@ public class BlockGenericPipe extends BlockContainer { pipe.wireSet[IPipe.WireColor.Yellow.ordinal()] = true; if (!entityplayer.capabilities.isCreativeMode) entityplayer.getCurrentEquippedItem().splitStack(1); - pipe.container.scheduleRenderUpdate(); + pipe.signalStrength[IPipe.WireColor.Yellow.ordinal()] = 0; + pipe.container.scheduleNeighborChange(); return true; } } else if (entityplayer.getCurrentEquippedItem().itemID == BuildCraftTransport.pipeGate.shiftedIndex