mirror of
https://github.com/songoda/UltimateKits.git
synced 2025-02-19 21:02:05 +01:00
Fixed issue causing server wide gui breaking.
This commit is contained in:
parent
18531addad
commit
3d87f8d16c
@ -55,7 +55,7 @@ public class CrateAnimateTask extends BukkitRunnable {
|
||||
this.listener = new Listener() {
|
||||
@EventHandler
|
||||
public void onInventoryClick(InventoryClickEvent event) {
|
||||
if (!(event.getWhoClicked() instanceof Player) && event.getWhoClicked() == player) return;
|
||||
if (!(event.getWhoClicked() instanceof Player) || event.getWhoClicked() != player) return;
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user