9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 02:19:23 +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 {

View File

@@ -347,11 +347,10 @@ items:
behavior:
type: block_item
block:
behaviors:
- type: door_block
can-open-with-hand: true
can-open-by-wind-charge: true
- type: sturdy_base_block
behavior:
type: door_block
can-open-with-hand: true
can-open-by-wind-charge: true
loot:
template: default:loot_table/self
settings: