From 7f0f35b060fec663d41693444b4fd19f00a9162a Mon Sep 17 00:00:00 2001 From: TheMode Date: Fri, 13 Aug 2021 21:05:56 +0200 Subject: [PATCH] Fix double/drag prediction in player inventory --- .../java/net/minestom/server/inventory/PlayerInventory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minestom/server/inventory/PlayerInventory.java b/src/main/java/net/minestom/server/inventory/PlayerInventory.java index 2df6226dc..33bfddbe9 100644 --- a/src/main/java/net/minestom/server/inventory/PlayerInventory.java +++ b/src/main/java/net/minestom/server/inventory/PlayerInventory.java @@ -358,6 +358,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl return false; } setCursorItem(clickResult.getCursor()); + update(); // FIXME: currently not properly client-predicted return true; } @@ -370,6 +371,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl return false; } setCursorItem(clickResult.getCursor()); + update(); // FIXME: currently not properly client-predicted return true; } }