From 3ec6f6a65fb7268d37e3c5efb358f56d77733123 Mon Sep 17 00:00:00 2001 From: Prototik Date: Fri, 5 Jun 2015 20:58:31 +0700 Subject: [PATCH] Additional checks to tracker --- .../entity/EntityTrackerEntry.java.patch | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/patches/net/minecraft/entity/EntityTrackerEntry.java.patch b/patches/net/minecraft/entity/EntityTrackerEntry.java.patch index 1d9d78f..554bd2d 100644 --- a/patches/net/minecraft/entity/EntityTrackerEntry.java.patch +++ b/patches/net/minecraft/entity/EntityTrackerEntry.java.patch @@ -258,12 +258,23 @@ s0epacketspawnobject.func_148996_a(MathHelper.floor_float((float)(entityleashknot.field_146063_b * 32))); s0epacketspawnobject.func_148995_b(MathHelper.floor_float((float)(entityleashknot.field_146064_c * 32))); s0epacketspawnobject.func_149005_c(MathHelper.floor_float((float)(entityleashknot.field_146062_d * 32))); -@@ -607,7 +705,7 @@ +@@ -607,13 +705,17 @@ { throw new IllegalArgumentException("Don\'t know how to add " + this.myEntity.getClass() + "!"); } - } + //} } - else +- else ++ else if (myEntity instanceof EntityLivingBase) { + this.lastHeadMotion = MathHelper.floor_float(this.myEntity.getRotationYawHead() * 256.0F / 360.0F); + return new S0FPacketSpawnMob((EntityLivingBase)this.myEntity); + } ++ else ++ { ++ throw new IllegalArgumentException("Don\'t know how to add " + this.myEntity.getClass() + "! Report this error to mod author."); ++ } + } + + public void removePlayerFromTracker(EntityPlayerMP p_73123_1_)