From c7ae290572e761c8ee0c1a2191d6091f8dcf709d Mon Sep 17 00:00:00 2001 From: Spacebuilder2020 Date: Mon, 12 Aug 2024 10:14:55 -0600 Subject: Implement dim num agnostic isGenerationAllowed function (#2854) * Implement dim num agnostic isGenerationAllowed function Replaces references to old function in as many places as possible Only reference that can't be changed right now is `E:\MinecraftProjects\GT5-Unofficial\src\main\java\com\github\bartimaeusnek\crossmod\galacticgreg\VoidMinerUtility.java:189` * Account for unloaded world or null provider by instead doing a dim number check This route should be avoided when possible. * Apply Spotless --- src/main/java/gregtech/common/GT_Worldgen_Stone.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/gregtech/common/GT_Worldgen_Stone.java') diff --git a/src/main/java/gregtech/common/GT_Worldgen_Stone.java b/src/main/java/gregtech/common/GT_Worldgen_Stone.java index 835f9d5c67..a9001d3f26 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_Stone.java +++ b/src/main/java/gregtech/common/GT_Worldgen_Stone.java @@ -82,7 +82,7 @@ public class GT_Worldgen_Stone extends GT_Worldgen_Ore { XSTR stoneRNG = new XSTR(); ArrayList stones = new ArrayList<>(); - if (!isGenerationAllowed(aWorld, aDimensionType, this.mDimensionType)) { + if (!isGenerationAllowed(aWorld, mDimensionType)) { return false; } if (!(this.mBiomeList.isEmpty() || this.mBiomeList.contains(aBiome))) { -- cgit