mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
40 lines
1.8 KiB
Diff
40 lines
1.8 KiB
Diff
--- ../src-base/common/net/minecraft/src/EntityTrackerEntry.java
|
|
+++ ../src-work/common/net/minecraft/src/EntityTrackerEntry.java
|
|
@@ -4,6 +4,8 @@
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
+
|
|
+import cpw.mods.fml.common.network.FMLNetworkHandler;
|
|
|
|
public class EntityTrackerEntry
|
|
{
|
|
@@ -232,6 +234,13 @@
|
|
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);
|
|
+ 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);
|
|
+ }
|
|
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 @@
|
|
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;
|