Tesseract

Tesseract

16M Downloads

[Crash] Adding Public Energy Channel

emperor06 opened this issue ยท 2 comments

commented

Version Info

  • Minecraft, 1.21.1 (neoforge 21.1.23)
  • Tesseract, 1.0.37

Steps to Reproduce
I'm not sure what exactly caused the crash, so here's why I did:

  • Mekanism creative energy cube to 20 ultimate universal cables into Tesseract 1
  • Create channel powo (send only) and activate it on Tesseract 1.
  • Tesseract 2: activate channel powo in receive only mode.
  • Tesseract 2 to pipez' energy cable with infinite extract module to an empty creative energy cube.
  • Right click on Tesseract 1, create a new channel, click the Public button (crash here)

Crash report (~/logs/latest.log)

latest.log

commented

Seems this has been since forever. NeoForge is the only modloader which checks and throws an error for it, still kinda odd no one reported this until now ๐Ÿ™ƒ
It should be fixed now in version 1.0.38 of Tesseract.
Thank you for reporting the issue!

commented

I've tried a quick fix and it seems to work. No more crash.

return TextComponents.translation("gui.narrate.button", TextComponents.translation("narrator.button.difficulty_lock")).string(". ").translation(this.isLocked() ? "narrator.button.difficulty_lock.locked" : "narrator.button.difficulty_lock.unlocked").get();

I added a call to get() on the second call to translation():

return TextComponents.translation("gui.narrate.button", TextComponents.translation("narrator.button.difficulty_lock").get()).string(". ").translation(this.isLocked() ? "narrator.button.difficulty_lock.locked" : "narrator.button.difficulty_lock.unlocked").get();

If that's the actual issue, then it affects other branches too.