From 727c575a1cc27013b80813b49ca801d9ad282fd6 Mon Sep 17 00:00:00 2001 From: Myles Date: Tue, 9 Feb 2021 10:35:13 +0000 Subject: [PATCH] Run QuickMove on next tick to improve likeliness of success (fixes #2044) Since it is 5 ticks later, the inventory may be closed --- .../bukkit/providers/BukkitInventoryQuickMoveProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java index 9422aca8a..f1f0adc7a 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java @@ -74,7 +74,7 @@ public class BukkitInventoryQuickMoveProvider extends InventoryQuickMoveProvider // http://wiki.vg/index.php?title=Protocol&oldid=13223#Click_Window updateTask.addItem(windowId, slotId, actionId); if (!registered) { - Via.getPlatform().runSync(updateTask, 5L); + Via.getPlatform().runSync(updateTask); } return true; }