Tech Reborn

Tech Reborn

30M Downloads

[1.20.1] Quantum Helmet doesn't provide night vision

iiPythonx opened this issue ยท 1 comments

commented

Describe the bug
Compared to the Nano Helmet (which DOES provide Night Vision), the quantum helmet doesn't provide Night Vision at all on my 1.20.1 fabric server, although the issue also happens in singleplayer.

Steps to Reproduce
Steps to reproduce the behavior:

  • Equip a charged quantum helmet, observe that you don't get night vision
  • Switch to a a charged nano helmet, observe that you get night vision correctly

Screenshots

tr.mp4

Environment (please complete the following information with the version):

  • Minecraft: 1.20.1
  • Mod Loader: fabric

Logs
https://paste.ee/p/85gq5

Additional context
If 1.20.1 isn't supported anymore, could somebody at least point me in the right direction for fixing the issue and rebuilding TR? I can't find any differences between the nano helmet and the quantum helmet in terms of adding the status effect.

commented

Works fine in 1.21.

This is how it is done:

if (TRItemUtils.isActive(stack) && tryUseEnergy(stack, TechRebornConfig.suitNightVisionCost)) {