GTNewHorizons / GT-New-Horizons-Modpack

A big progressive questing modpack for Minecraft 1.7.10 balanced around the mod GregTech.
https://www.gtnewhorizons.com/
Other
1.01k stars 307 forks source link

Rendering crash with every Gregtech / GT Addon mod #17451

Closed seventh-june closed 1 month ago

seventh-june commented 1 month ago

Your GTNH Discord Username

neura#2020

Your Pack Version

Beta 2.7.0 release 1

Your Server

SP

Java Version

Java 21

Type of Server

Single Player

Your Actions

Crash has happened trying to access low pressure steam furnace and PBF

Crash Report

https://mclo.gs/TftV5TV

Final Checklist

github-actions[bot] commented 1 month ago

Found 1 linked crash report(s)

Primitive Automated Analysis of Crash Report

https://mclo.gs/TftV5TV

Stacktrace
java.lang.UnsupportedOperationException
  at com.google.common.collect.ImmutableList.add(ImmutableList.java:467)
  at gregtech.api.items.MetaGeneratedTool.addAdditionalToolTips(MetaGeneratedTool.java:570)
  at gregtech.api.items.MetaBaseItem.addInformation(MetaBaseItem.java:277)
  at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:525)
  at com.gtnewhorizons.modularui.api.drawable.GuiHelper.getItemTooltip(GuiHelper.java:458)
  at com.gtnewhorizons.modularui.common.internal.wrapper.ModularGui.renderToolTip(ModularGui.java:404)
  at com.gtnewhorizons.modularui.common.internal.wrapper.ModularGui.drawGuiContainerForegroundLayer(ModularGui.java:288)
  at com.gtnewhorizons.modularui.common.internal.wrapper.ModularGui.drawScreen(ModularGui.java:157)
  at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1061)
  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1001)
  at net.minecraft.client.Minecraft.run(Minecraft.java:5110)
  at net.minecraft.client.main.Main.main(SourceFile:148)
  at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
  at java.lang.reflect.Method.invoke(Method.java:580)
  at net.minecraft.launchwrapper.Launch.rfb$realLaunch(Launch.java:250)
  at net.minecraft.launchwrapper.Launch.launch(Launch.java:35)
  at net.minecraft.launchwrapper.Launch.main(Launch.java:60)
  at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
  at java.lang.reflect.Method.invoke(Method.java:580)
  at com.gtnewhorizons.retrofuturabootstrap.Main.main(Main.java:207)
  at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
  at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
  at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
grimly commented 1 month ago

Hello,

I got this issue as well.

I think I had my shift key pressed. Looking at some code, you trust all modded items to give you back a modifiable aList line list when granted an opportunity to print their description : https://github.com/GTNewHorizons/GT5-Unofficial/blob/master/src/main/java/gregtech/api/items/MetaBaseItem.java#L272-L273

I wouldn't know where to start setting a debugger to check my theory but a misbehaving item implementation might be causing this crash.

Lyfts commented 1 month ago

Duplicate of https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/17401