Remove the calc of clientside effect

This commit is contained in:
Sotr
2019-03-23 16:58:41 +08:00
parent 427e24ae2c
commit 94abb54309
3 changed files with 12 additions and 7 deletions

View File

@@ -1229,9 +1229,12 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
if (this.getVehicle() instanceof EntityBoat) {
this.inWater = false;
} else if (this.b(TagsFluid.WATER)) {
// Akarin start - this handle by client
/*
if (!this.inWater && !this.justCreated) {
this.au();
}
*/
this.fallDistance = 0.0F;
this.inWater = true;
@@ -1271,13 +1274,13 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
for (i = 0; (float) i < 1.0F + this.width * 20.0F; ++i) {
f3 = (this.random.nextFloat() * 2.0F - 1.0F) * this.width;
f4 = (this.random.nextFloat() * 2.0F - 1.0F) * this.width;
//this.world.addParticle(Particles.e, this.locX + (double) f3, (double) (f2 + 1.0F), this.locZ + (double) f4, this.motX, this.motY - (double) (this.random.nextFloat() * 0.2F), this.motZ);
this.world.addParticle(Particles.e, this.locX + (double) f3, (double) (f2 + 1.0F), this.locZ + (double) f4, this.motX, this.motY - (double) (this.random.nextFloat() * 0.2F), this.motZ);
}
for (i = 0; (float) i < 1.0F + this.width * 20.0F; ++i) {
f3 = (this.random.nextFloat() * 2.0F - 1.0F) * this.width;
f4 = (this.random.nextFloat() * 2.0F - 1.0F) * this.width;
//this.world.addParticle(Particles.R, this.locX + (double) f3, (double) (f2 + 1.0F), this.locZ + (double) f4, this.motX, this.motY, this.motZ);
this.world.addParticle(Particles.R, this.locX + (double) f3, (double) (f2 + 1.0F), this.locZ + (double) f4, this.motX, this.motY, this.motZ);
}
}

View File

@@ -146,9 +146,13 @@ public class EntitySlime extends EntityInsentient implements IMonster {
this.setSize(0.51000005F * (float) i, 0.51000005F * (float) i);
this.yaw = this.aS;
this.aQ = this.aS;
// Akarin start - this handle by client
/*
if (this.isInWater() && this.random.nextInt(20) == 0) {
this.au();
}
*/
// Akarin end
}
super.a(datawatcherobject);

View File

@@ -98,11 +98,9 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
private double s;
private double t;
private double u;
// Akarin start - package
double v;
double w;
double x;
// Akarin end
private double v;
private double w;
private double x;
private Vec3D teleportPos;
private int teleportAwait;
private int A;