Skip to content

Commit 824a8df

Browse files
committed
Revert "wait 2s before removing closed POS GUI from the active GUIs cache"
This reverts commit 4a0a63e.
1 parent 4a0a63e commit 824a8df

File tree

1 file changed

+1
-3
lines changed
  • src/main/java/pro/cloudnode/smp/bankaccounts/events

1 file changed

+1
-3
lines changed

src/main/java/pro/cloudnode/smp/bankaccounts/events/GUI.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ public void posItemsChangeWhileOpened(final @NotNull InventoryMoveItemEvent even
180180
@EventHandler
181181
public void posGuiClosed(final @NotNull InventoryCloseEvent event) {
182182
if (!POS.activePosChestGuis.containsKey(event.getInventory())) return;
183-
BankAccounts.getInstance().getServer().getScheduler().runTaskLater(BankAccounts.getInstance(), () -> {
184-
POS.activePosChestGuis.remove(event.getInventory());
185-
}, 40L);
183+
POS.activePosChestGuis.remove(event.getInventory());
186184
}
187185

188186
public final static @NotNull HashMap<@NotNull String, @NotNull NamespacedKey[]> keys = new HashMap<>() {{

0 commit comments

Comments
 (0)