aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_Worldgen_Stone.java
diff options
context:
space:
mode:
authorSpacebuilder2020 <spacebuilder2020@users.noreply.github.com>2024-08-12 10:14:55 -0600
committerGitHub <noreply@github.com>2024-08-12 23:14:55 +0700
commitc7ae290572e761c8ee0c1a2191d6091f8dcf709d (patch)
tree662e430957c9ec013244d5000ef7a6ed613977ba /src/main/java/gregtech/common/GT_Worldgen_Stone.java
parent0ac5ccb1384d5e6c56bafe7ae7dd96b653d0df9c (diff)
downloadGT5-Unofficial-c7ae290572e761c8ee0c1a2191d6091f8dcf709d.tar.gz
GT5-Unofficial-c7ae290572e761c8ee0c1a2191d6091f8dcf709d.tar.bz2
GT5-Unofficial-c7ae290572e761c8ee0c1a2191d6091f8dcf709d.zip
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
Diffstat (limited to 'src/main/java/gregtech/common/GT_Worldgen_Stone.java')
-rw-r--r--src/main/java/gregtech/common/GT_Worldgen_Stone.java2
1 files changed, 1 insertions, 1 deletions
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<ValidSeeds> stones = new ArrayList<>();
- if (!isGenerationAllowed(aWorld, aDimensionType, this.mDimensionType)) {
+ if (!isGenerationAllowed(aWorld, mDimensionType)) {
return false;
}
if (!(this.mBiomeList.isEmpty() || this.mBiomeList.contains(aBiome))) {