Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master-1.19-lts' into master-1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Sep 24, 2023
2 parents ac6fba9 + 03a6628 commit 15b01ab
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/changelog/1.18.2-1.16.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.17.0 or higher.

Fixes:
* Fix held items vanishing after gui close, Closes #1308

6 changes: 6 additions & 0 deletions resources/changelog/1.19.2-1.19.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.18.2 or higher.

Fixes:
* Fix held items vanishing after gui close, Closes #1308

Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ protected Container constructInputSlotsInventory() {

@Override
public void removed(Player player) {
super.removed(player);
if (inputSlots instanceof SimpleInventory) {
((SimpleInventory) inputSlots).removeDirtyMarkListener(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.cyclops.integrateddynamics.inventory.container;

import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.network.chat.Component;
import net.minecraft.world.Container;
Expand Down Expand Up @@ -122,6 +123,7 @@ public void onDirty() {

@Override
public void removed(Player player) {
super.removed(player);
if (inventory instanceof SimpleInventory) {
((SimpleInventory) inventory).removeDirtyMarkListener(this);
}
Expand Down

0 comments on commit 15b01ab

Please sign in to comment.