don't send a close inventory packet when opening a new one

This commit is contained in:
themode 2021-03-21 13:38:25 +01:00
parent 126382f55d
commit 9893bb72c8

View File

@ -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();