From 094456a1310853195b688b3fec740a9f5d6b54c7 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Sun, 6 Nov 2011 21:20:38 +0000 Subject: Redstone wire now updates correctly when added and removed. it also updates all currently programmed redstone items and wire circuits. Also cleaned up the mess I left of the code. git-svn-id: http://mc-server.googlecode.com/svn/trunk@69 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index a2597a229..7239a083d 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -525,11 +525,15 @@ void cClientHandle::HandlePacket( cPacket* a_Packet ) { if (OldBlock == E_BLOCK_REDSTONE_TORCH_ON) { cRedstone Redstone(World); - Redstone.cRedstone::ChangeRedstoneTorch( PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ, false ); + Redstone.ChangeRedstoneTorch( PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ, false ); } if (OldBlock == E_BLOCK_REDSTONE_TORCH_OFF) { cRedstone Redstone(World); - Redstone.cRedstone::ChangeRedstoneTorch( PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ, false ); + Redstone.ChangeRedstoneTorch( PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ, false ); + } + if (OldBlock == E_BLOCK_REDSTONE_WIRE) { + cRedstone Redstone(World); + Redstone.ChangeRedstoneTorch( PacketData->m_PosX, PacketData->m_PosY, PacketData->m_PosZ, false ); } int helditem = m_Player->GetInventory().GetEquippedItem().m_ItemID; -- cgit v1.2.3