9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 12:56:28 +00:00

提高延迟区域存储的稳定性

This commit is contained in:
XiaoMoMi
2025-05-07 01:54:51 +08:00
parent b01d564e4f
commit daf2ac3e8a
5 changed files with 16 additions and 8 deletions

View File

@@ -120,10 +120,6 @@ public class FurnitureItemBehavior extends ItemBehavior {
return InteractionResult.FAIL;
}
if (!BukkitCraftEngine.instance().antiGrief().canPlace(bukkitPlayer, furnitureLocation)) {
return InteractionResult.FAIL;
}
FurnitureAttemptPlaceEvent attemptPlaceEvent = new FurnitureAttemptPlaceEvent(bukkitPlayer, customFurniture, anchorType, furnitureLocation.clone(),
DirectionUtils.toBlockFace(clickedFace), context.getHand(), world.getBlockAt(context.getClickedPos().x(), context.getClickedPos().y(), context.getClickedPos().z()));
if (EventUtils.fireAndCheckCancel(attemptPlaceEvent)) {