summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-22 17:29:02 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-22 17:29:02 +0200
commitbebfb230daf5c4e185791b6fc60f48e6f3dcfdf7 (patch)
treebe2e03c51d52cd46204151400182554835a1283b /src/Simulator
parentMerge branch 'master' into Blocks (diff)
downloadcuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar.gz
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar.bz2
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar.lz
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar.xz
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.tar.zst
cuberite-bebfb230daf5c4e185791b6fc60f48e6f3dcfdf7.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index d65d4eb45..6056fa554 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -566,7 +566,7 @@ void cIncrementalRedstoneSimulator::HandleFenceGate(int a_RelBlockX, int a_RelBl
{
if ((MetaData & 0x4) != 0)
{
- m_Chunk->SetMeta(a_RelBlockX, a_RelBlockY, a_RelBlockZ, MetaData & 0xFFFFFFFB);
+ m_Chunk->SetMeta(a_RelBlockX, a_RelBlockY, a_RelBlockZ, MetaData & ~0x04);
m_Chunk->BroadcastSoundParticleEffect(1003, BlockX, a_RelBlockY, BlockZ, 0);
}
SetPlayerToggleableBlockAsSimulated(a_RelBlockX, a_RelBlockY, a_RelBlockZ, false);