From 8493242c4cdf89bb0a38d1009f6bc8fc36f129e3 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 22 Mar 2020 03:34:56 -0400 Subject: [PATCH] Removed useless code that just broke stuff. --- .../com/songoda/ultimatekits/gui/KitEditorGui.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java b/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java index 6518138..1a116a7 100644 --- a/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java +++ b/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java @@ -180,9 +180,7 @@ public class KitEditorGui extends DoubleGui { restoreItemsInstance(); setPlayerActionForRange(0, 0, 3, 8, null); setAcceptsItems(true); - setMainAction(); } else { - setMainAction(); saveItemsInstance(); setInvItems(); setAcceptsItems(false); @@ -191,17 +189,6 @@ public class KitEditorGui extends DoubleGui { }); } - private void setMainAction() { - this.setPlayerActionForRange(0, 0, 3, 8, event -> { - Bukkit.getScheduler().runTaskLater(plugin, () -> { - if (isInInventory) - stash = player.getInventory().getContents().clone(); - }, 0L); - if (!isInInventory && event.player.getItemOnCursor().getType() != Material.AIR) - event.event.setCancelled(true); - }); - } - private void saveItemsInstance() { setPlayerUnlockedRange(0, 0, 3, 8, false); stash = player.getInventory().getContents().clone();