9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

修正变量名

This commit is contained in:
jhqwqmc
2025-12-30 18:07:07 +08:00
parent 86176f0797
commit 15c310ec83

View File

@@ -99,8 +99,8 @@ public class PressurePlateBlockBehavior extends BukkitBlockBehavior {
if (EventUtils.fireAndCheckCancel(event)) {
return;
}
boolean canInteract = entity instanceof Player p && !BukkitCraftEngine.instance().antiGriefProvider().canInteract(p, block.getLocation());
if (canInteract) {
boolean cannotInteract = entity instanceof Player p && !BukkitCraftEngine.instance().antiGriefProvider().canInteract(p, block.getLocation());
if (cannotInteract) {
return;
}
Object state = args[0];