Mixin mixup, borken profiler sections. Fixes #1027
This commit is contained in:
1 parent
0e9df3701f
commit
19ad8cfbf3
1 file changed
+15
-6
@@ -79,18 +79,27 @@ public abstract class ServerWorld_tickMixin extends World
|
|||||||
currentSection = CarpetProfiler.start_section((World) (Object) this, "Village", CarpetProfiler.TYPE.GENERAL);
|
currentSection = CarpetProfiler.start_section((World) (Object) this, "Village", CarpetProfiler.TYPE.GENERAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Inject(method = "tick", at = @At(
|
||||||
|
value = "CONSTANT",
|
||||||
|
args = "stringValue=chunkSource"
|
||||||
|
))
|
||||||
|
private void stopVillageSection(BooleanSupplier booleanSupplier_1, CallbackInfo ci)
|
||||||
|
{
|
||||||
|
if (currentSection != null)
|
||||||
|
{
|
||||||
|
CarpetProfiler.end_current_section(currentSection);
|
||||||
|
currentSection = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Inject(method = "tick", at = @At(
|
@Inject(method = "tick", at = @At(
|
||||||
value = "CONSTANT",
|
value = "CONSTANT",
|
||||||
args = "stringValue=blockEvents"
|
args = "stringValue=blockEvents"
|
||||||
))
|
))
|
||||||
private void stopVillageStartBlockAgainSection(BooleanSupplier booleanSupplier_1, CallbackInfo ci)
|
private void startBlockAgainSection(BooleanSupplier booleanSupplier_1, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
if (currentSection != null)
|
currentSection = CarpetProfiler.start_section((World) (Object) this, "Blocks", CarpetProfiler.TYPE.GENERAL);
|
||||||
{
|
|
||||||
CarpetProfiler.end_current_section(currentSection);
|
|
||||||
currentSection = CarpetProfiler.start_section((World) (Object) this, "Blocks", CarpetProfiler.TYPE.GENERAL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "tick", at = @At(
|
@Inject(method = "tick", at = @At(
|
||||||
|
|||||||
Reference in new issue
Block a user