mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix entity tracker "update" packet not computing correctly. Should work now..
This commit is contained in:
1 parent
c90a853377
commit
25a4dcb653
1 file changed
+11
-11
@@ -13,9 +13,9 @@
|
||||
this.field_73138_k = this.field_73132_a.field_70181_x;
|
||||
this.field_73135_l = this.field_73132_a.field_70179_y;
|
||||
|
||||
+ int posX = MathHelper.func_76128_c(this.field_73137_j * 32.0D);
|
||||
+ int posY = MathHelper.func_76128_c(this.field_73138_k * 32.0D);
|
||||
+ int posZ = MathHelper.func_76128_c(this.field_73135_l * 32.0D);
|
||||
+ int posX = MathHelper.func_76128_c(this.field_73132_a.field_70165_t * 32.0D);
|
||||
+ int posY = MathHelper.func_76128_c(this.field_73132_a.field_70163_u * 32.0D);
|
||||
+ int posZ = MathHelper.func_76128_c(this.field_73132_a.field_70161_v * 32.0D);
|
||||
+ if (posX != this.field_73128_d || posY != this.field_73129_e || posZ != this.field_73126_f)
|
||||
+ {
|
||||
+ FMLNetworkHandler.makeEntitySpawnAdjustment(this.field_73132_a.field_70157_k, p_73117_1_, this.field_73128_d, this.field_73129_e, this.field_73126_f);
|
||||
@@ -23,17 +23,17 @@
|
||||
if (this.field_73143_t && !(var6 instanceof Packet24MobSpawn))
|
||||
{
|
||||
p_73117_1_.field_71135_a.func_72567_b(new Packet28EntityVelocity(this.field_73132_a.field_70157_k, this.field_73132_a.field_70159_w, this.field_73132_a.field_70181_x, this.field_73132_a.field_70179_y));
|
||||
@@ -306,6 +315,13 @@
|
||||
@@ -304,6 +313,13 @@
|
||||
if (this.field_73132_a.field_70128_L)
|
||||
{
|
||||
System.out.println("Fetching addPacket for removed entity");
|
||||
}
|
||||
|
||||
+ }
|
||||
+
|
||||
+ Packet pkt = FMLNetworkHandler.getEntitySpawningPacket(this.field_73132_a);
|
||||
+
|
||||
+
|
||||
+ if (pkt != null)
|
||||
+ {
|
||||
+ return pkt;
|
||||
+ }
|
||||
+
|
||||
}
|
||||
|
||||
if (this.field_73132_a instanceof EntityItem)
|
||||
{
|
||||
EntityItem var8 = (EntityItem)this.field_73132_a;
|
||||
Reference in new issue
Block a user