summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFenceGate.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-20 16:23:31 +0200
committerMattes D <github@xoft.cz>2014-08-20 16:23:31 +0200
commit5410a36f92c1c94f25552dff4a46b9611f0cb917 (patch)
tree920627577c09fd3270b08bab3e7a6d3d29d52025 /src/Blocks/BlockFenceGate.h
parentPlayer: Silenced a few type conversion warnings. (diff)
parentRemoved old classes from the CMakeLists.txt (diff)
downloadcuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.gz
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.bz2
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.lz
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.xz
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.zst
cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockFenceGate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Blocks/BlockFenceGate.h b/src/Blocks/BlockFenceGate.h
index 433531275..ae99a4f94 100644
--- a/src/Blocks/BlockFenceGate.h
+++ b/src/Blocks/BlockFenceGate.h
@@ -35,6 +35,7 @@ public:
NIBBLETYPE OldMetaData = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
NIBBLETYPE NewMetaData = PlayerYawToMetaData(a_Player->GetYaw());
OldMetaData ^= 4; // Toggle the gate
+
if ((OldMetaData & 1) == (NewMetaData & 1))
{
// Standing in front of the gate - apply new direction