Perform same refactor for NV

This commit is contained in:
zontreck 2024-04-01 20:31:52 -07:00
parent 0ef217fe44
commit a1ddd055c4

View file

@ -46,17 +46,10 @@ public class NightVisionEnchantment extends Enchantment
return false;
}
public static AtomicInteger TICKS = new AtomicInteger(0);
public static void runEntityTick(ServerPlayer sp)
{
if(ServerUtilities.isClient()) return;
if(TICKS.getAndIncrement() >= (2*20))
{
TICKS.set(0);
if(ServerConfig.general.debug)
{
@ -86,7 +79,6 @@ public class NightVisionEnchantment extends Enchantment
sp.addEffect(inst);
}
}
}