mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 12:06:00 +03:00
15 lines
794 B
Diff
15 lines
794 B
Diff
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityAITasks.java
|
|
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityAITasks.java
|
|
@@ -104,7 +104,10 @@
|
|
while (iterator.hasNext())
|
|
{
|
|
entityaitaskentry = (EntityAITasks.EntityAITaskEntry)iterator.next();
|
|
- this.theProfiler.startSection(entityaitaskentry.action.getClass().getSimpleName());
|
|
+ if (this.theProfiler.profilingEnabled) //Unnecessary lag...do it only if profiling is on
|
|
+ this.theProfiler.startSection(entityaitaskentry.action.getClass().getSimpleName());
|
|
+ else
|
|
+ this.theProfiler.startSection("EntityAITaskEntry.EntityAIBase");
|
|
entityaitaskentry.action.startExecuting();
|
|
this.theProfiler.endSection();
|
|
}
|