mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 00:48:28 +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);
|
((PlayerInventory) inventory).setCursorItem(itemStack);
|
||||||
} else if (inventory instanceof Inventory) {
|
} else if (inventory instanceof Inventory) {
|
||||||
((Inventory) inventory).setCursorItem(player, itemStack);
|
((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