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);