Sophisticated Backpacks

Sophisticated Backpacks

89M Downloads

Upgrade toggle switches incorrectly aligned

flibdev opened this issue ยท 1 comments

commented

Describe the bug
The toggle switches for backpack upgrades are aligned incorrectly when backpacks are configured to have fewer rows than default.

Initially noticed on the Valhesia 5 modpack, but replicated on a vanilla Forge server with only Sophisticated Backpacks (and Sophisticated Core) installed.

To Reproduce
Steps to reproduce the behavior:

  1. Set up Forge server and add Sophisticated Backpacks and Core mods
  2. Add a defaultconfigs/sophisticatedbackpacks-server.toml config file and change the inventorySlotCount for a backpack to something smaller than the default. For the screenshots, I used this configuration:
[server]
  [server.netheriteBackpack]
  	inventorySlotCount = 27
  	upgradeSlotCount = 7
  1. Open game, add upgrades to altered backpack
  2. See toggle switches do not align with their upgrades

Expected behavior
The toggle switches should align to their upgrades, but seem to be assuming their container will be higher up.

Screenshots

Unmodified Diamond Backpack Modified Netherite Backpack
base_diamond edit_netherite

Versions

Minecraft 1.20.1
forge-1.20.1-47.1.0
sophisticatedcore-1.20.1-0.5.83.395
sophisticatedbackpacks-1.20.1-3.18.56.890
commented

This is fixed in the latest version of sophisticated core where the upgrade part of the gui has been redesigned