Skip to content

Commit

Permalink
fix: šŸ› Fixed scrollable inventory to only show slot background for slā€¦
Browse files Browse the repository at this point in the history
ā€¦ots that exist. Fixes an issue with gold double chest by default showing background for slots that are not there making it seem like there's a bug with inventory interaction.
  • Loading branch information
P3pp3rF1y committed Oct 10, 2024
1 parent 1a379f2 commit 85ad735
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 85ad735

Please sign in to comment.