From edaec0cb6ddb3110cb3e83b77b50379f16a4fe98 Mon Sep 17 00:00:00 2001 From: TheMode Date: Sun, 27 Jun 2021 05:44:24 +0200 Subject: [PATCH] Fix double click inside player inventory --- .../java/net/minestom/server/inventory/PlayerInventory.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/net/minestom/server/inventory/PlayerInventory.java b/src/main/java/net/minestom/server/inventory/PlayerInventory.java index 34d88ef63..18c558d52 100644 --- a/src/main/java/net/minestom/server/inventory/PlayerInventory.java +++ b/src/main/java/net/minestom/server/inventory/PlayerInventory.java @@ -403,16 +403,11 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl public boolean doubleClick(@NotNull Player player, int slot) { final ItemStack cursor = getCursorItem(); final InventoryClickResult clickResult = clickProcessor.doubleClick(this, null, player, slot, cursor); - if (clickResult == null) return false; - if (clickResult.doRefresh()) update(); - - setItemStack(slot, OFFSET, clickResult.getClicked()); setCursorItem(clickResult.getCursor()); - return !clickResult.isCancel(); } }