From 3423562be8c92e55f6850db8f178d28adfb726e0 Mon Sep 17 00:00:00 2001 From: TheMode Date: Fri, 13 Aug 2021 20:45:28 +0200 Subject: [PATCH] Fix double/drag prediction --- src/main/java/net/minestom/server/inventory/Inventory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minestom/server/inventory/Inventory.java b/src/main/java/net/minestom/server/inventory/Inventory.java index 1debb3311..5cd8464a5 100644 --- a/src/main/java/net/minestom/server/inventory/Inventory.java +++ b/src/main/java/net/minestom/server/inventory/Inventory.java @@ -414,6 +414,7 @@ public class Inventory extends AbstractInventory implements Viewable { return false; } refreshPlayerCursorItem(player, clickResult.getCursor()); + updateAll(player); // FIXME: currently not properly client-predicted return true; } @@ -429,6 +430,7 @@ public class Inventory extends AbstractInventory implements Viewable { return false; } refreshPlayerCursorItem(player, clickResult.getCursor()); + updateAll(player); // FIXME: currently not properly client-predicted return true; }