summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemDoor.h
diff options
context:
space:
mode:
authorwraith11 <wraith11@users.noreply.github.com>2015-04-07 17:51:38 +0200
committerwraith11 <Simon-Hahn-1@web.de>2015-04-21 20:47:02 +0200
commit794013315b5c4759181dbe5795eda937eff111c0 (patch)
tree0888c2521a9607e9ed907312c0493476fe69c980 /src/Items/ItemDoor.h
parentAdded extra divide operator to Vector3. (diff)
downloadcuberite-794013315b5c4759181dbe5795eda937eff111c0.tar
cuberite-794013315b5c4759181dbe5795eda937eff111c0.tar.gz
cuberite-794013315b5c4759181dbe5795eda937eff111c0.tar.bz2
cuberite-794013315b5c4759181dbe5795eda937eff111c0.tar.lz
cuberite-794013315b5c4759181dbe5795eda937eff111c0.tar.xz
cuberite-794013315b5c4759181dbe5795eda937eff111c0.tar.zst
cuberite-794013315b5c4759181dbe5795eda937eff111c0.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemDoor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemDoor.h b/src/Items/ItemDoor.h
index 524c49a5c..ddd3d4e20 100644
--- a/src/Items/ItemDoor.h
+++ b/src/Items/ItemDoor.h
@@ -40,7 +40,7 @@ public:
}
// The door needs a compatible block below it:
- if (!cBlockDoorHandler::CanBeOn(a_World.GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)))
+ if (!cBlockDoorHandler::CanBeOn(a_World.GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ), a_World.GetBlockMeta(a_BlockX, a_BlockY - 1, a_BlockZ)))
{
return false;
}