Fix old entity not being removed on dimension change (#5833)
This commit is contained in:
parent
765efc3c72
commit
7a8ae9f56b
1 changed files with 5 additions and 4 deletions
|
@ -240,15 +240,16 @@
|
||||||
|
|
||||||
double d3 = Math.min(-2.9999872E7D, serverworld1.func_175723_af().func_177726_b() + 16.0D);
|
double d3 = Math.min(-2.9999872E7D, serverworld1.func_175723_af().func_177726_b() + 16.0D);
|
||||||
double d4 = Math.min(-2.9999872E7D, serverworld1.func_175723_af().func_177736_c() + 16.0D);
|
double d4 = Math.min(-2.9999872E7D, serverworld1.func_175723_af().func_177736_c() + 16.0D);
|
||||||
@@ -2118,7 +2141,6 @@
|
@@ -2118,7 +2141,7 @@
|
||||||
serverworld1.func_217460_e(entity);
|
serverworld1.func_217460_e(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
- this.field_70128_L = true;
|
- this.field_70128_L = true;
|
||||||
|
+ this.remove(false);
|
||||||
this.field_70170_p.func_217381_Z().func_76319_b();
|
this.field_70170_p.func_217381_Z().func_76319_b();
|
||||||
serverworld.func_82742_i();
|
serverworld.func_82742_i();
|
||||||
serverworld1.func_82742_i();
|
serverworld1.func_82742_i();
|
||||||
@@ -2274,7 +2296,7 @@
|
@@ -2274,7 +2297,7 @@
|
||||||
Pose pose = this.func_213283_Z();
|
Pose pose = this.func_213283_Z();
|
||||||
EntitySize entitysize1 = this.func_213305_a(pose);
|
EntitySize entitysize1 = this.func_213305_a(pose);
|
||||||
this.field_213325_aI = entitysize1;
|
this.field_213325_aI = entitysize1;
|
||||||
|
@ -257,7 +258,7 @@
|
||||||
if (entitysize1.field_220315_a < entitysize.field_220315_a) {
|
if (entitysize1.field_220315_a < entitysize.field_220315_a) {
|
||||||
double d0 = (double)entitysize1.field_220315_a / 2.0D;
|
double d0 = (double)entitysize1.field_220315_a / 2.0D;
|
||||||
this.func_174826_a(new AxisAlignedBB(this.field_70165_t - d0, this.field_70163_u, this.field_70161_v - d0, this.field_70165_t + d0, this.field_70163_u + (double)entitysize1.field_220316_b, this.field_70161_v + d0));
|
this.func_174826_a(new AxisAlignedBB(this.field_70165_t - d0, this.field_70163_u, this.field_70161_v - d0, this.field_70165_t + d0, this.field_70163_u + (double)entitysize1.field_220316_b, this.field_70161_v + d0));
|
||||||
@@ -2641,6 +2663,7 @@
|
@@ -2641,6 +2664,7 @@
|
||||||
return this.field_211517_W;
|
return this.field_211517_W;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -265,7 +266,7 @@
|
||||||
public final float func_213311_cf() {
|
public final float func_213311_cf() {
|
||||||
return this.field_213325_aI.field_220315_a;
|
return this.field_213325_aI.field_220315_a;
|
||||||
}
|
}
|
||||||
@@ -2670,4 +2693,69 @@
|
@@ -2670,4 +2694,69 @@
|
||||||
public void func_213293_j(double p_213293_1_, double p_213293_3_, double p_213293_5_) {
|
public void func_213293_j(double p_213293_1_, double p_213293_3_, double p_213293_5_) {
|
||||||
this.func_213317_d(new Vec3d(p_213293_1_, p_213293_3_, p_213293_5_));
|
this.func_213317_d(new Vec3d(p_213293_1_, p_213293_3_, p_213293_5_));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue