summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2018-01-17 20:15:42 +0100
committerAlexander Harkness <me@bearbin.net>2018-01-17 20:15:42 +0100
commit701fee334ce6b83ad7e555767d04f14c5dc60766 (patch)
tree0f4a0c0e0bc815404e752a46ff4c4d7bec76a31f /src/Items
parentAdd world name in logs from cWorld (#4148) (diff)
downloadcuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar.gz
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar.bz2
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar.lz
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar.xz
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.tar.zst
cuberite-701fee334ce6b83ad7e555767d04f14c5dc60766.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemDoor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Items/ItemDoor.h b/src/Items/ItemDoor.h
index a74997b7d..9cf67dd0e 100644
--- a/src/Items/ItemDoor.h
+++ b/src/Items/ItemDoor.h
@@ -97,6 +97,7 @@ public:
if (
cBlockDoorHandler::IsDoorBlockType(LeftNeighborBlock) || // The block to the left is a door block
(
+ !cBlockInfo::IsSolid(LeftNeighborBlock) && // Prioritize hinge on the left side
cBlockInfo::IsSolid(RightNeighborBlock) && // The block to the right is solid...
!cBlockDoorHandler::IsDoorBlockType(RightNeighborBlock) // ... but not a door
)