Prioritize hinge on the left side (#4153)
This commit is contained in:
parent
d11335e4f6
commit
701fee334c
|
@ -97,6 +97,7 @@ public:
|
||||||
if (
|
if (
|
||||||
cBlockDoorHandler::IsDoorBlockType(LeftNeighborBlock) || // The block to the left is a door block
|
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...
|
cBlockInfo::IsSolid(RightNeighborBlock) && // The block to the right is solid...
|
||||||
!cBlockDoorHandler::IsDoorBlockType(RightNeighborBlock) // ... but not a door
|
!cBlockDoorHandler::IsDoorBlockType(RightNeighborBlock) // ... but not a door
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user