|
private void stopBlockStartVillageSection(BooleanSupplier booleanSupplier_1, CallbackInfo ci) |
|
{ |
|
if (currentSection != null) |
|
{ |
|
CarpetProfiler.end_current_section(currentSection); |
|
currentSection = CarpetProfiler.start_section((World) (Object) this, "Village", CarpetProfiler.TYPE.GENERAL); |
|
} |
|
} |
|
|
|
@Inject(method = "tick", at = @At( |
|
value = "CONSTANT", |
|
args = "stringValue=tickPending" |
|
)) |
|
private void stopVillageStartBlockAgainSection(BooleanSupplier booleanSupplier_1, CallbackInfo ci) |
|
{ |
|
if (currentSection != null) |
|
{ |
|
CarpetProfiler.end_current_section(currentSection); |
|
currentSection = CarpetProfiler.start_section((World) (Object) this, "Blocks", CarpetProfiler.TYPE.GENERAL); |
|
} |
|
} |
Village section ends after constant stringValue=tickPending
. However, the order of execution is reversed in the game's code.
(1.15.2 yarn)
Results in block event ms being shown under village section.
(1.15.2)