mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-13 07:09:51 +01:00
don't send a close inventory packet when opening a new one
This commit is contained in:
parent
126382f55d
commit
9893bb72c8
@ -1824,7 +1824,7 @@ public class Player extends LivingEntity implements CommandSender {
|
||||
callCancellableEvent(InventoryOpenEvent.class, inventoryOpenEvent, () -> {
|
||||
|
||||
if (getOpenInventory() != null) {
|
||||
closeInventory();
|
||||
getOpenInventory().removeViewer(this);
|
||||
}
|
||||
|
||||
Inventory newInventory = inventoryOpenEvent.getInventory();
|
||||
|
Loading…
Reference in New Issue
Block a user