Fix MC-117087, prevent calling Class.getSimpleName on TEs unnecessarily (#3887)

This commit is contained in:
mezz authored and LexManos committed 2017-05-11 21:05:04 -07:00
1 parent da96dd3514
commit 261313a682
1 file changed
+6 -1
@@ -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");