mirror of
https://github.com/Minestom/Minestom.git
synced 2024-07-01 08:54:57 +02: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