9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 02:49:15 +00:00

fix(block): 修复门掉落問題

This commit is contained in:
jhqwqmc
2025-07-07 00:07:36 +08:00
parent 5e93b49a9d
commit a01074e812
11 changed files with 117 additions and 14 deletions

View File

@@ -138,6 +138,11 @@ public abstract class BlockBehavior {
return false;
}
// Level level, BlockPos pos, BlockState state, Player player
public Object playerWillDestroy(Object thisBlock, Object[] args, Callable<Object> superMethod) throws Exception {
return superMethod.call();
}
public ImmutableBlockState updateStateForPlacement(BlockPlaceContext context, ImmutableBlockState state) {
return state;
}