28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/entity/EntityTrackerEntry.java
|
|
+++ ../src-work/minecraft/net/minecraft/entity/EntityTrackerEntry.java
|
|
@@ -450,6 +450,7 @@
|
|
|
|
this.field_73132_a.func_184178_b(p_73117_1_);
|
|
p_73117_1_.func_184848_d(this.field_73132_a);
|
|
+ net.minecraftforge.event.ForgeEventFactory.onStartEntityTracking(field_73132_a, p_73117_1_);
|
|
}
|
|
}
|
|
else if (this.field_73134_o.contains(p_73117_1_))
|
|
@@ -457,6 +458,7 @@
|
|
this.field_73134_o.remove(p_73117_1_);
|
|
this.field_73132_a.func_184203_c(p_73117_1_);
|
|
p_73117_1_.func_152339_d(this.field_73132_a);
|
|
+ net.minecraftforge.event.ForgeEventFactory.onStopEntityTracking(field_73132_a, p_73117_1_);
|
|
}
|
|
}
|
|
}
|
|
@@ -489,6 +491,9 @@
|
|
field_151262_p.warn("Fetching addPacket for removed entity");
|
|
}
|
|
|
|
+ Packet pkt = net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.getEntitySpawningPacket(this.field_73132_a);
|
|
+ if (pkt != null) return pkt;
|
|
+
|
|
if (this.field_73132_a instanceof EntityPlayerMP)
|
|
{
|
|
return new SPacketSpawnPlayer((EntityPlayer)this.field_73132_a);
|