Fix middle click

This commit is contained in:
TheMode 2021-08-14 20:33:58 +02:00
parent b505613810
commit e7cbe49a42

View File

@ -119,7 +119,8 @@ public class WindowListener {
((PlayerInventory) inventory).setCursorItem(itemStack);
} else if (inventory instanceof Inventory) {
((Inventory) inventory).setCursorItem(player, itemStack);
} else {
throw new RuntimeException("Invalid inventory: " + inventory.getClass());
}
throw new RuntimeException("Invalid inventory: " + inventory.getClass());
}
}