From 85ad7359fbb797f18335030f6a02ff99b0a8917d Mon Sep 17 00:00:00 2001 From: P3pp3rF1y Date: Fri, 11 Oct 2024 01:27:03 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20scrollable=20inve?= =?UTF-8?q?ntory=20to=20only=20show=20slot=20background=20for=20slots=20th?= =?UTF-8?q?at=20exist.=20Fixes=20an=20issue=20with=20gold=20double=20chest?= =?UTF-8?q?=20by=20default=20showing=20background=20for=20slots=20that=20a?= =?UTF-8?q?re=20not=20there=20making=20it=20seem=20like=20there's=20a=20bu?= =?UTF-8?q?g=20with=20inventory=20interaction.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 4 ++-- .../sophisticatedstorage/client/gui/LimitedBarrelScreen.java | 2 +- .../client/gui/LimitedBarrelSettingsScreen.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 2bee25111..674fa732c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ loader_version_range=[4,) mod_id=sophisticatedstorage mod_name=Sophisticated Storage mod_license=GNU General Public License v3.0 -mod_version=0.10.44 +mod_version=0.10.45 mod_group_id=sophisticatedstorage mod_authors=P3pp3rF1y, Ridanisaurus mod_description=Fancy and functional storage containers. @@ -35,7 +35,7 @@ jade_cf_file_id=5109393 chipped_cf_file_id=5506938 resourcefullib_cf_file_id=5483169 athena_cf_file_id=5431579 -sc_version=[1.21-0.6.42,1.22) +sc_version=[1.21-0.6.44,1.22) sb_version=[1.21,1.22) #publish diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java index 39ce4c35c..e0e5e8b8c 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java @@ -30,7 +30,7 @@ public LimitedBarrelScreen(StorageContainerMenu menu, Inventory playerInventory, } @Override - protected void drawSlotBg(GuiGraphics guiGraphics, int x, int y) { + protected void drawSlotBg(GuiGraphics guiGraphics, int x, int y, int visibleSlotsCount) { LimitedBarrelScreen.drawSlotBg(this, guiGraphics, x, y, getMenu().getNumberOfStorageInventorySlots()); } diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelSettingsScreen.java b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelSettingsScreen.java index c5e143f74..39fee5ea6 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelSettingsScreen.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelSettingsScreen.java @@ -25,7 +25,7 @@ protected void updateStorageSlotsPositions() { } @Override - protected void drawSlotBg(GuiGraphics guiGraphics, int x, int y) { + protected void drawSlotBg(GuiGraphics guiGraphics, int x, int y, int visibleSlotsCount) { LimitedBarrelScreen.drawSlotBg(this, guiGraphics, x, y, getMenu().getNumberOfStorageInventorySlots()); }