summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-06 22:20:38 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-06 22:20:38 +0100
commit094456a1310853195b688b3fec740a9f5d6b54c7 (patch)
tree0a5bdbbf16623c937405d3984ae420adc555044b /source/cClientHandle.cpp
parentRedstone is now self aware. It's not quite as dumb as it used to be at any rate. Redstone wires have no range and understand they are supposed to stay on whenever there's an active torch touching it. (Need to add other power devices) (diff)
downloadcuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar.gz
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar.bz2
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar.lz
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar.xz
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.tar.zst
cuberite-094456a1310853195b688b3fec740a9f5d6b54c7.zip
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp8
1 files changed, 6 insertions, 2 deletions
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;