From 00da02cbaee932a2e0afb5abd16ddb553f51fd61 Mon Sep 17 00:00:00 2001 From: Andrew Wong <42793301+md5sha256@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:56:21 +1000 Subject: [PATCH] Wrap the inventory view after the backpack has been opened --- .../implementation/listeners/TestBackpackListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/TestBackpackListener.java b/src/test/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/TestBackpackListener.java index 0504bcf708..d6c6217112 100644 --- a/src/test/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/TestBackpackListener.java +++ b/src/test/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/TestBackpackListener.java @@ -145,8 +145,8 @@ void testBackpackDropNormalItem() throws InterruptedException { private boolean isAllowed(String id, ItemStack item) throws InterruptedException { Player player = server.addPlayer(); - InventoryView playerInv = InventoryViewWrapper.wrap(player.getOpenInventory()); Inventory inv = openMockBackpack(player, id, 9).getInventory(); + InventoryView playerInv = InventoryViewWrapper.wrap(player.getOpenInventory()); int slot = 7; inv.setItem(slot, item);