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