summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-04-26 01:38:41 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-06 13:21:19 +0200
commit84534dfeb288dd12d998f3f192ee162a1def5367 (patch)
treea8debc1723cafc6066d46edfc02888218ba7cb4d /src/World.cpp
parentProvides improvements to redstone wire (diff)
downloadcuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar.gz
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar.bz2
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar.lz
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar.xz
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.tar.zst
cuberite-84534dfeb288dd12d998f3f192ee162a1def5367.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index f7d2165c7..cf2c35816 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2964,7 +2964,7 @@ bool cWorld::SetTrapdoorOpen(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_Op
return false;
}
- bool IsOpen = (Meta & 0x4) > 0;
+ bool IsOpen = (Meta & 0x4) != 0;
if (a_Open != IsOpen)
{
SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta ^ 0x4);