mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix middle click
This commit is contained in:
parent
b505613810
commit
e7cbe49a42
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user