Rearrange some probably problematic code in Flight
This commit is contained in:
parent
9ca97962fa
commit
0ef217fe44
1 changed files with 25 additions and 34 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue