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
This commit is contained in:
tastybento 2020-11-26 18:37:48 -08:00
parent 2cb1e7c306
commit 2e00602371

View File

@ -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()));
}
}