forked from SteamWar/SteamWar
Fix HotbarKit.onInventoryClick not resetting the cursor item
This commit is contained in:
@@ -119,6 +119,7 @@ public class HotbarKit extends Kit {
|
|||||||
|
|
||||||
Player player = (Player) event.getWhoClicked();
|
Player player = (Player) event.getWhoClicked();
|
||||||
click(player, slot, event);
|
click(player, slot, event);
|
||||||
|
player.setItemOnCursor(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void click(Player player, int slot, Cancellable event) {
|
private void click(Player player, int slot, Cancellable event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user