diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 15:55:19 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 15:55:19 +0100 |
commit | a61082ffee9c8182d053b4b335bd80bced376606 (patch) | |
tree | 3c20eaf18505b7a4a441a8bf713dc15d7f1ce8a8 /src/Simulator | |
parent | Fixed trapdoors not toggling (diff) | |
download | cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar.gz cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar.bz2 cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar.lz cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar.xz cuberite-a61082ffee9c8182d053b4b335bd80bced376606.tar.zst cuberite-a61082ffee9c8182d053b4b335bd80bced376606.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/RedstoneSimulator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Simulator/RedstoneSimulator.cpp b/src/Simulator/RedstoneSimulator.cpp index 771be6ac1..63e4f04a8 100644 --- a/src/Simulator/RedstoneSimulator.cpp +++ b/src/Simulator/RedstoneSimulator.cpp @@ -627,14 +627,14 @@ void cRedstoneSimulator::HandleRedstoneLamp(int a_BlockX, int a_BlockY, int a_Bl { if (AreCoordsPowered(a_BlockX, a_BlockY, a_BlockZ)) { - m_World.FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_REDSTONE_LAMP_ON, 0); + m_World.SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_REDSTONE_LAMP_ON, 0); } } else { if (!AreCoordsPowered(a_BlockX, a_BlockY, a_BlockZ)) { - m_World.FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_REDSTONE_LAMP_OFF, 0); + m_World.SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_REDSTONE_LAMP_OFF, 0); } } } @@ -649,7 +649,7 @@ void cRedstoneSimulator::HandleTNT(int a_BlockX, int a_BlockY, int a_BlockZ) { m_World.BroadcastSoundEffect("random.fuse", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, 0.6f); m_World.SpawnPrimedTNT(a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, 4); // 4 seconds to boom - m_World.FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0); + m_World.SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0); } } |