mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Removed useless code that just broke stuff.
This commit is contained in:
parent
1b1deadcf0
commit
8493242c4c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user