Skip to content

Commit

Permalink
Fix client ui not updating correctly after interacting with the backp…
Browse files Browse the repository at this point in the history
…ack item (#174)
  • Loading branch information
GeorgH93 committed Jul 17, 2021
1 parent 8e8ce18 commit cbdd6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit cbdd6d5

Please sign in to comment.