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:
@@ -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 {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user