Fix client ui not updating correctly after interacting with the backpack item (#174)

This commit is contained in:
GeorgH93 2021-07-17 15:07:49 +02:00
parent 8e8ce18aff
commit cbdd6d5ac6
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -7,7 +7,7 @@
<packaging>pom</packaging>
<properties>
<revision>2.4.1</revision>
<revision>2.4.2</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>