From 2e00602371db512c99e9f42075aaff6abb32895e Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 26 Nov 2020 18:37:48 -0800 Subject: [PATCH] Remove updateInventory from noGo There was not specific reason why this was being done and in testing, I cannot find a reason why it is needed (yet) so I am removing it due to the lag reported in https://github.com/BentoBoxWorld/BentoBox/issues/1580 --- .../world/bentobox/bentobox/api/flags/FlagListener.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java b/src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java index 7319046ed..2c7ad98b8 100644 --- a/src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java +++ b/src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java @@ -94,11 +94,8 @@ public abstract class FlagListener implements Listener { if (e instanceof Cancellable) { ((Cancellable)e).setCancelled(true); } - if (user != null) { - if (!silent) { - user.notify(string, TextVariables.DESCRIPTION, user.getTranslation(flag.getHintReference())); - } - user.updateInventory(); + if (user != null && !silent) { + user.notify(string, TextVariables.DESCRIPTION, user.getTranslation(flag.getHintReference())); } }