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

fix(bukkit): 进一步修复

This commit is contained in:
jhqwqmc
2025-03-25 23:38:34 +08:00
parent 3670700003
commit 7445d5c604

View File

@@ -314,6 +314,7 @@ public class PacketConsumers {
&& !(boolean) Reflections.method$ItemStack$canBreakBlockInAdventureMode.invoke(
itemStack, blockInWorld
)) {
player.abortMiningBlock();
player.stopMiningBlock();
return;
}
@@ -322,6 +323,7 @@ public class PacketConsumers {
&& !(boolean) Reflections.method$ItemStack$canDestroy.invoke(
itemStack, Reflections.instance$BuiltInRegistries$BLOCK, blockInWorld
)) {
player.abortMiningBlock();
player.stopMiningBlock();
return;
}