promotional bannermobile promotional banner

Night Vision Decay Fix

Patches night vision decay pulsing

About

Simple client-side patch mod that modifies the Minecraft code to negate the night vision decay. 

Night Vision Decay?

When night vision potion gets under 200 ticks (10 seconds) it starts to cycle brightness. This can be seen as a flicking, pulse, or strobing while using the potion.

Why the need?

This mod was made as a request to solve issues with other mods setting a low NV value. Any value under 200 will cause the pulsating effect. Long-term gameplay with this effect can cause eye strain. As well is generally annoying for roleplaying with NV constantly active.

How does it work?

The mod replaces the base code for night vision brightness with a static value using ASM. This removes all code normally in the method including code that causes the pulsing effect. Due to this, there is a possibility of compatibility issues with other mods.  However, this should be extremely rare as few mods use ASM or the method. In future versions, this will be replaced by a forge event hook.

 

Exact edit point: net.minecraft.client.renderer.EntityRenderer#getNightVisionBrightness.

 

 

The Night Vision Decay Fix Team

profile avatar
  • 42
    Followers
  • 24
    Projects
  • 16.6M
    Downloads

More from BuiltBrokenView all