From 261313a682121aeb009fbaecfc0ec11c3c0eccfd Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 11 May 2017 21:05:04 -0700 Subject: [PATCH] Fix MC-117087, prevent calling Class.getSimpleName on TEs unnecessarily (#3887) --- patches/minecraft/net/minecraft/world/World.java.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/World.java.patch b/patches/minecraft/net/minecraft/world/World.java.patch index d71645ad20..8683c1adc3 100644 --- a/patches/minecraft/net/minecraft/world/World.java.patch +++ b/patches/minecraft/net/minecraft/world/World.java.patch @@ -364,7 +364,7 @@ throw new ReportedException(crashreport1); } } -@@ -1682,7 +1796,7 @@ +@@ -1682,11 +1796,11 @@ { BlockPos blockpos = tileentity.func_174877_v(); @@ -373,6 +373,11 @@ { try { +- this.field_72984_F.func_76320_a(tileentity.getClass().getSimpleName()); ++ this.field_72984_F.func_76320_a(this.field_72984_F.field_76327_a ? tileentity.getClass().getSimpleName() : ""); // Fix for MC-117087 + ((ITickable)tileentity).func_73660_a(); + this.field_72984_F.func_76319_b(); + } @@ -1695,6 +1809,13 @@ CrashReport crashreport2 = CrashReport.func_85055_a(throwable, "Ticking block entity"); CrashReportCategory crashreportcategory2 = crashreport2.func_85058_a("Block entity being ticked");