The editing tool bar now loads when the GUI initially opens.

This commit is contained in:
Brianna 2021-03-05 09:07:07 -06:00
parent 42e11e8f7e
commit be2d27708a

View File

@ -50,7 +50,6 @@ public class KitEditorGui extends DoubleGui {
.processPlaceholder("name", kit.getName())
.getMessage());
setInvItems();
setOnClose((event) -> {
restoreItemsInstance();
this.saveKit(player, inventory, false);
@ -90,6 +89,8 @@ public class KitEditorGui extends DoubleGui {
saveItemsInstance();
paint();
Bukkit.getScheduler().runTaskLater(plugin, this::setInvItems, 3L);
}
private void paint() {