Skip to content

Commit

Permalink
Wrap the inventory view after the backpack has been opened
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Oct 1, 2024
1 parent b508e45 commit 00da02c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00da02c

Please sign in to comment.