Never check footstep

This commit is contained in:
Sotr
2019-03-22 07:04:05 +08:00
parent 6d6e7c4c75
commit 193cadb6fa
3 changed files with 2 additions and 13 deletions

View File

@@ -30,13 +30,6 @@ public class AkarinAsyncExecutor extends Thread {
MinecraftServer server = MinecraftServer.getServer();
while (server.isRunning()) {
server.getWorlds().forEach(world -> world.entityList.forEach(entity -> {
if (!entity.dead && entity.spirtingWaterParticle) {
entity.populateSprintingWaterParticles();
entity.spirtingWaterParticle = false;
}
}));
try {
Thread.sleep(STD_TICK_TIME);
} catch (InterruptedException interrupted) {

View File

@@ -190,7 +190,6 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
protected int numCollisions = 0; // Paper
// Akarin start
public boolean enderTeleport;
public boolean spirtingWaterParticle;
// Akarin end
public void inactiveTick() { }
// Spigot end
@@ -463,10 +462,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
}
*/
// Akarin start - async executor
//this.av();
this.spirtingWaterParticle = true;
// Akarin end
//this.av(); // Akarin - this handle by the client
this.r();
if (this.world.isClientSide) {
this.extinguish();
@@ -1285,7 +1281,6 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
}
public void populateSprintingWaterParticles() { this.av(); } // Akarin - OBFHELPER
public void av() {
if (this.isSprinting() && !this.isInWater()) {
this.aw();

View File

@@ -793,6 +793,7 @@ public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStati
// Spigot start
org.spigotmc.WatchdogThread.hasStarted = true; // Paper
io.akarin.server.core.AkarinAsyncExecutor.initalise(); // Akarin
Arrays.fill( recentTps, 20 );
long start = System.nanoTime(), curTime, wait, tickSection = start; // Paper - Further improve server tick loop
lastTick = start - TICK_TIME; // Paper