Skip to content

Commit f38c4d9

Browse files
committed
fix: door placing on some blocks
1 parent 1a8d10e commit f38c4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cn/nukkit/block/BlockDoor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public boolean place(Item item, Block block, Block target, BlockFace face, doubl
280280
if (face == BlockFace.UP) {
281281
Block blockUp = this.up();
282282
Block blockDown = this.down();
283-
if (!blockUp.canBeReplaced() || blockDown.isTransparent()) {
283+
if (!blockUp.canBeReplaced() || !blockDown.isSolid(BlockFace.UP) && !(blockDown instanceof BlockCauldron)) {
284284
return false;
285285
}
286286

0 commit comments

Comments
 (0)