Skip to content

Commit

Permalink
Fixed crash when picking blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Jul 30, 2024
1 parent 6d6d93a commit 554e48e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected void register() {
return;
}
PacketFactory.sendJavaContainerSetContent(wrapper.user(), inventoryTracker.getInventoryContainer());
if (!inventoryTracker.isInventoryOpen()) {
if (!inventoryTracker.isInventoryOpen() && inventoryTracker.getCurrentContainer() != null) {
PacketFactory.sendJavaContainerSetContent(wrapper.user(), inventoryTracker.getCurrentContainer());
}
});
Expand Down

0 comments on commit 554e48e

Please sign in to comment.