9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 20:39:10 +00:00

fix(block): 修复updateShape返回值问题

This commit is contained in:
jhqwqmc
2025-06-19 10:31:07 +08:00
parent 461882a532
commit 247bbda4eb
2 changed files with 5 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ public class DoorBlockBehavior extends BukkitBlockBehavior {
return MBlocks.AIR$defaultState;
}
if (neighborState.get(anotherDoorBehavior.get().halfProperty) != half) {
return neighborState.with(anotherDoorBehavior.get().halfProperty, half);
return neighborState.with(anotherDoorBehavior.get().halfProperty, half).customBlockState().handle();
}
return MBlocks.AIR$defaultState;
} else {