summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-23 00:55:51 +0200
committerMattes D <github@xoft.cz>2015-04-23 00:55:51 +0200
commite51bd6bcd82ab44fa0b74f7a33d4452a43c6949c (patch)
tree06fc5109831ae8f6e796f984a8dc033aaf1d9eaf /src/Items
parentMerge pull request #1852 from wraith11/SlabPlacing (diff)
parentFix door placing in connection with slabs (diff)
downloadcuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar.gz
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar.bz2
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar.lz
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar.xz
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.tar.zst
cuberite-e51bd6bcd82ab44fa0b74f7a33d4452a43c6949c.zip
Diffstat (limited to 'src/Items')
-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;
}