1
0

Redstone wire and trapdoor fixes

* Fixes #1887
* Fixes #1763
* Fixes #1083
This commit is contained in:
Tiger Wang
2015-04-26 00:38:41 +01:00
parent bd48475085
commit 84534dfeb2
4 changed files with 345 additions and 333 deletions

View File

@@ -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);