diff --git a/pom.xml b/pom.xml index b8a9c77..e0c7e58 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ com.songoda UltimateKits 4.0.0 - 2.6.13 + 2.6.14 clean install UltimateKits-${project.version} diff --git a/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java b/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java index 495a8a5..b0422b8 100644 --- a/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java +++ b/src/main/java/com/songoda/ultimatekits/gui/KitEditorGui.java @@ -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() {