From 776fcf19c2856688f7c2b96173be2a619c1e294d Mon Sep 17 00:00:00 2001 From: Kli Kli Date: Mon, 16 Sep 2024 06:43:51 +0200 Subject: [PATCH] fix: substantial satchel does not open in curio slot --- .../common/container/satchel/AbstractSatchelContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/klikli_dev/occultism/common/container/satchel/AbstractSatchelContainer.java b/src/main/java/com/klikli_dev/occultism/common/container/satchel/AbstractSatchelContainer.java index 1015ef76f..edc090e1d 100644 --- a/src/main/java/com/klikli_dev/occultism/common/container/satchel/AbstractSatchelContainer.java +++ b/src/main/java/com/klikli_dev/occultism/common/container/satchel/AbstractSatchelContainer.java @@ -49,9 +49,10 @@ public AbstractSatchelContainer(@Nullable MenuType menuType, int id, Inventor if (this.selectedSlot == -1) { this.satchelStack = CuriosUtil.getBackpack(playerInventory.player); + } else { + this.satchelStack = playerInventory.player.getInventory().getItem(this.selectedSlot).copy(); } - this.satchelStack = playerInventory.player.getInventory().getItem(this.selectedSlot).copy(); this.setupSatchelSlots(); this.setupPlayerInventorySlots();