Sophisticated Backpacks (Unofficial Fabric port)

Sophisticated Backpacks (Unofficial Fabric port)

1M Downloads

[Crash] Incompatibility with Legendary Tooltips

Master-64 opened this issue ยท 1 comments

commented

Describe the bug
Hovering your cursor over any item above 99 items (via the stack upgrade) soft-crashes the entire game. In the error below, I hovered over an item slot holding 120 items.

To Reproduce
Steps to reproduce the behavior:

  1. Open backpack
  2. Add any stack upgrade
  3. Get a slot to contain more than 99 items
  4. Hover cursor over slot
  5. See crash

Expected behavior
The game should not crash doing this.

Versions
Using 1.21.1 with Fabric API 0.16.10.

Error

java.lang.IllegalStateException: Value must be within range [1;99]: 120
	at knot//com.mojang.serialization.DataResult$Error.md749777$owo$lambda$addStackTraceToException$0$0(DataResult.java:565)
	at knot//com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287)
	at knot//com.mojang.serialization.DataResult.getOrThrow(DataResult.java:81)
	at knot//net.minecraft.class_1799.method_57358(class_1799.java:403)
	at knot//com.anthonyhilyard.iceberg.util.Selectors.itemMatches(Selectors.java:304)
	at knot//com.anthonyhilyard.legendarytooltips.config.LegendaryTooltipsConfig.getFrameDefinition(LegendaryTooltipsConfig.java:513)
	at knot//com.anthonyhilyard.legendarytooltips.LegendaryTooltips.getDefinitionColors(LegendaryTooltips.java:59)
	at knot//com.anthonyhilyard.legendarytooltips.LegendaryTooltips.onTooltipColorEvent(LegendaryTooltips.java:227)
	at knot//com.anthonyhilyard.iceberg.events.client.RenderTooltipEvents.lambda$static$4(RenderTooltipEvents.java:57)
	at knot//net.minecraft.class_332.handler$hkm000$iceberg$preFillGradient(class_332.java:6496)
	at knot//net.minecraft.class_332.method_51435(class_332.java:697)
	at knot//net.minecraft.class_332.method_51437(class_332.java:651)
	at knot//net.minecraft.class_465.method_2380(class_465.java:182)
	at knot//net.p3pp3rf1y.sophisticatedcore.client.gui.StorageScreenBase.method_2380(StorageScreenBase.java:726)
	at knot//net.p3pp3rf1y.sophisticatedcore.client.gui.StorageScreenBase.method_25394(StorageScreenBase.java:455)
	at knot//net.p3pp3rf1y.sophisticatedbackpacks.client.gui.BackpackScreen.method_25394(BackpackScreen.java:59)
	at knot//net.minecraft.class_437.method_47413(class_437.java:117)
	at knot//net.minecraft.class_757.mixinextras$bridge$method_47413$301(class_757.java)
	at knot//net.minecraft.class_757.wrapOperation$fpd000$fabric-screen-api-v1$onRenderScreen(class_757.java:7086)
	at knot//net.minecraft.class_757.mixinextras$bridge$wrapOperation$fpd000$fabric-screen-api-v1$onRenderScreen$303(class_757.java)
	at knot//net.minecraft.class_757.wrapOperation$ihp000$konkrete$wrapRenderScreen_Konkrete(class_757.java:10622)
	at knot//net.minecraft.class_757.method_3192(class_757.java:913)
	at knot//net.minecraft.class_310.method_1523(class_310.java:1285)
	at knot//net.minecraft.class_310.method_1514(class_310.java:882)
	at knot//net.minecraft.client.main.Main.main(Main.java:256)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
commented

Update: seems to be related directly to the Legendary Tooltips mod, as I've now gotten the same crash with other mods doing similar things. Closing.