mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +01:00
Fix client ui not updating correctly after interacting with the backpack item (#174)
This commit is contained in:
parent
8e8ce18aff
commit
cbdd6d5ac6
@ -243,7 +243,7 @@ public void onItemClick(InventoryClickEvent event)
|
||||
}
|
||||
else if(event.getClick() == ClickType.RIGHT || event.getClick() == ClickType.SHIFT_RIGHT)
|
||||
{
|
||||
player.performCommand(openCommand);
|
||||
plugin.getServer().getScheduler().runTask(plugin, () -> { player.performCommand(openCommand); });
|
||||
event.setCancelled(true);
|
||||
}
|
||||
else if(event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY)
|
||||
|
Loading…
Reference in New Issue
Block a user