9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 02:19:23 +00:00

Update BlockEventListener.java

This commit is contained in:
XiaoMoMi
2025-12-22 04:19:08 +08:00
parent 7a60c3ccf7
commit cb8760e8bb

View File

@@ -147,9 +147,8 @@ public final class BlockEventListener implements Listener {
return;
}
if (!customBreakEvent.dropItems()) {
event.setDropItems(false);
}
// 同步选项
event.setDropItems(customBreakEvent.dropItems());
// execute functions
Cancellable cancellable = Cancellable.of(event::isCancelled, event::setCancelled);