diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-31 11:48:54 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-31 11:48:54 +0200 |
commit | 683da71c0fa33c2542e28bed5d2f106ddfc68b64 (patch) | |
tree | 7e065290556a8e166309be96a0c3288d3e65b373 /src | |
parent | Add doxy-comment (diff) | |
download | cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar.gz cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar.bz2 cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar.lz cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar.xz cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.tar.zst cuberite-683da71c0fa33c2542e28bed5d2f106ddfc68b64.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockDoor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h index d8ce916fa..eaa039c50 100644 --- a/src/Blocks/BlockDoor.h +++ b/src/Blocks/BlockDoor.h @@ -163,13 +163,12 @@ public: static void SetOpen(cChunkInterface & a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ, bool a_Open) { BLOCKTYPE Block = a_ChunkInterface.GetBlock(a_BlockX, a_BlockY, a_BlockZ); - NIBBLETYPE Meta = GetTrueDoorMeta(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ); - if (!IsDoor(Block)) { return; } + NIBBLETYPE Meta = GetTrueDoorMeta(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ); bool Opened = (Meta & 0x4) != 0; if (Opened == a_Open) { |