Skip to content

Commit

Permalink
Ensure initialization prior to applying F3 info. Closes #182, #183, #185
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz authored Oct 31, 2024
1 parent 4720072 commit 958e27f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public void addDebugInfo(List<String> debugLines, BlockPos pos, Climate.Sampler
int qx = QuartPos.fromBlock(pos.getX());
int qz = QuartPos.fromBlock(pos.getZ());
IExtendedParameterList<Holder<Biome>> extension = (IExtendedParameterList<Holder<Biome>>) this.parameters();
debugLines.add("Region: " + extension.getRegion(extension.getUniqueness(qx, 0, qz)).getName().toString());
if (extension.isInitialized()) debugLines.add("Region: " + extension.getRegion(extension.getUniqueness(qx, 0, qz)).getName().toString());
}
}

0 comments on commit 958e27f

Please sign in to comment.