Skip to content

Commit a46d296

Browse files
committed
make sure that we use packet-based inventory state after closing the inventory
1 parent b14628c commit a46d296

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/java/ac/grim/grimac/utils/latency/CompensatedInventory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ public void onPacketSend(final PacketSendEvent event) {
501501
* Closes the player's currently open inventory on the client by resetting to the player's inventory.
502502
*/
503503
private void closeActiveInventory() {
504+
isPacketInventoryActive = true;
504505
openWindowID = 0;
505506
menu = inventory;
506507
menu.setCarried(ItemStack.EMPTY); // Reset carried item

0 commit comments

Comments
 (0)