From baa004ce49618eeff63307655af1bb8642e2537e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=AA=E8=81=AA?= <178666380@qq.com> Date: Sun, 25 Jun 2017 19:06:45 +0800 Subject: [PATCH] ignore already track error --- patches/net/minecraft/entity/EntityTracker.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/net/minecraft/entity/EntityTracker.java.patch b/patches/net/minecraft/entity/EntityTracker.java.patch index 68c0eee..261a90b 100644 --- a/patches/net/minecraft/entity/EntityTracker.java.patch +++ b/patches/net/minecraft/entity/EntityTracker.java.patch @@ -36,6 +36,15 @@ if (p_72785_2_ > this.entityViewDistance) { p_72785_2_ = this.entityViewDistance; +@@ -193,7 +195,7 @@ + { + if (this.trackedEntityIDs.containsItem(p_72785_1_.getEntityId())) + { +- throw new IllegalStateException("Entity is already tracked!"); ++ return; + } + + EntityTrackerEntry entitytrackerentry = new EntityTrackerEntry(p_72785_1_, p_72785_2_, p_72785_3_, p_72785_4_); @@ -223,7 +225,9 @@ }); p_72785_1_.addEntityCrashInfo(crashreportcategory);