diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/protocollib/windowclick/WindowClickListener.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/protocollib/windowclick/WindowClickListener.java index fa5bb08d9..aab998e29 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/protocollib/windowclick/WindowClickListener.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/protocollib/windowclick/WindowClickListener.java @@ -40,7 +40,7 @@ public void onPacketReceiving(PacketEvent event) { final int slot = this.getSlot(packet); if (slot != -999 && slot != -1) { - event.setCancelled(slot < 0); + if (slot < 0) event.setCancelled(true); return; } @@ -55,10 +55,10 @@ public void onPacketReceiving(PacketEvent event) { event.setCancelled(true); return; case THROW: - event.setCancelled(slot == -1); + if (slot == -1) event.setCancelled(true); return; case QUICK_MOVE: - event.setCancelled(slot == -999); + if (slot == -999) event.setCancelled(true); } } catch (Exception e) { LogUtil.moduleLog(Level.WARNING, "window-click-crash-patch",