Perform same refactor for NV
This commit is contained in:
parent
0ef217fe44
commit
a1ddd055c4
1 changed files with 21 additions and 29 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue