Rearrange some probably problematic code in Flight

This commit is contained in:
zontreck 2024-04-01 20:31:24 -07:00
parent 9ca97962fa
commit 0ef217fe44

View file

@ -59,17 +59,10 @@ public class FlightEnchantment extends Enchantment
}
public static AtomicInteger TICKS = new AtomicInteger(0);
public static void runEntityTick(ServerPlayer sp)
{
if(ServerUtilities.isClient()) return;
if(TICKS.getAndIncrement() >= 20)
{
TICKS.set(0);
if(ServerConfig.general.debug)
{
@ -98,8 +91,6 @@ public class FlightEnchantment extends Enchantment
sp.addEffect(inst);
}
}
}