fixed profiler counting be time in e time

This commit is contained in:
gnembon committed 2019-12-08 13:14:31 -04:00
1 parent 9cca6ddfb5
commit 1984c2cc77
2 files changed
+7 -3

No files matched your search

@@ -108,7 +108,11 @@ public abstract class ServerWorld_tickMixin extends World
}
}
@Inject(method = "tick", at = @At("TAIL"))
@Inject(method = "tick", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/world/ServerWorld;tickBlockEntities()V",
shift = At.Shift.BEFORE
))
private void endEntitySection(BooleanSupplier booleanSupplier_1, CallbackInfo ci)
{
CarpetProfiler.end_current_section(currentSection);