From 958e27f1accb4ec808395e0d6e7592eb94c34d7a Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 1 Nov 2024 09:56:16 +1100 Subject: [PATCH] Ensure initialization prior to applying F3 info. Closes #182, #183, #185 --- .../java/terrablender/mixin/MixinMultiNoiseBiomeSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/main/java/terrablender/mixin/MixinMultiNoiseBiomeSource.java b/Common/src/main/java/terrablender/mixin/MixinMultiNoiseBiomeSource.java index 50faae0..1a77137 100644 --- a/Common/src/main/java/terrablender/mixin/MixinMultiNoiseBiomeSource.java +++ b/Common/src/main/java/terrablender/mixin/MixinMultiNoiseBiomeSource.java @@ -51,6 +51,6 @@ public void addDebugInfo(List debugLines, BlockPos pos, Climate.Sampler int qx = QuartPos.fromBlock(pos.getX()); int qz = QuartPos.fromBlock(pos.getZ()); IExtendedParameterList> extension = (IExtendedParameterList>) 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()); } }