Skip to content

Commit b8e238f

Browse files
committed
fix: 🐛 Fixed memorized stack in the first slot to not render in trash slot as well
1 parent ed5429b commit b8e238f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.daemon=false
33

44
mod_id=sophisticatedcore
55
mod_group_id=sophisticatedcore
6-
mod_version=1.2.77
6+
mod_version=1.2.78
77
sonar_project_key=sophisticatedcore:SophisticatedCore
88
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedCore
99

src/main/java/net/p3pp3rf1y/sophisticatedcore/client/gui/StorageScreenBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ private void renderStack(GuiGraphics guiGraphics, int x, int y, ItemStack itemst
702702

703703
private void renderSlotBackground(GuiGraphics guiGraphics, Slot slot, int i, int j) {
704704
Optional<ItemStack> memorizedStack = getMenu().getMemorizedStackInSlot(slot.index);
705-
if (getMenu().isStorageInventorySlot(slot.index)) {
705+
if (slot instanceof StorageInventorySlot && getMenu().isStorageInventorySlot(slot.index)) {
706706
if (memorizedStack.isPresent()) {
707707
guiGraphics.renderItem(memorizedStack.get(), i, j);
708708
drawStackOverlay(guiGraphics, i, j);

0 commit comments

Comments
 (0)