From 638cc3ac4f87a0aa65cd55a421bc31c987cc64d5 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 24 Apr 2019 15:14:47 -0400 Subject: [PATCH] Fixed ASync Inventory Open. --- .../com/songoda/ultimaterepairing/utils/SettingsManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimaterepairing/utils/SettingsManager.java b/src/main/java/com/songoda/ultimaterepairing/utils/SettingsManager.java index 690d08d..fd2a184 100644 --- a/src/main/java/com/songoda/ultimaterepairing/utils/SettingsManager.java +++ b/src/main/java/com/songoda/ultimaterepairing/utils/SettingsManager.java @@ -88,7 +88,9 @@ public class SettingsManager implements Listener { config.set(value, event.getMessage()); } - this.finishEditing(player); + Bukkit.getScheduler().scheduleSyncDelayedTask(UltimateRepairing.getInstance(), () -> + this.finishEditing(player), 0L); + event.setCancelled(true); }