diff --git a/common/src/main/java/toughasnails/temperature/TemperatureHelperImpl.java b/common/src/main/java/toughasnails/temperature/TemperatureHelperImpl.java index 3f296db6..9c05cfb4 100644 --- a/common/src/main/java/toughasnails/temperature/TemperatureHelperImpl.java +++ b/common/src/main/java/toughasnails/temperature/TemperatureHelperImpl.java @@ -147,7 +147,7 @@ private static TemperatureLevel getBiomeTemperatureLevel(Level level, BlockPos p Holder biome = level.getBiome(pos); float biomeTemperature = biome.value().getBaseTemperature(); - if (!biome.is(BiomeTags.IS_OVERWORLD) || (pos.getY() > ModConfig.temperature.environmentalModifierAltitude || level.canSeeSky(pos))) + if (!level.dimensionType().natural() || (pos.getY() > ModConfig.temperature.environmentalModifierAltitude || level.canSeeSky(pos))) { if (biome.is(ModTags.Biomes.ICY_BIOMES)) return TemperatureLevel.ICY; else if (biome.is(ModTags.Biomes.COLD_BIOMES)) return TemperatureLevel.COLD; diff --git a/forge/src/main/java/toughasnails/forge/init/ModCompatibility.java b/forge/src/main/java/toughasnails/forge/init/ModCompatibility.java index 9e1750b4..e7061930 100644 --- a/forge/src/main/java/toughasnails/forge/init/ModCompatibility.java +++ b/forge/src/main/java/toughasnails/forge/init/ModCompatibility.java @@ -40,7 +40,7 @@ private static TemperatureLevel seasonModifier(Level level, BlockPos pos, Temper Holder biome = level.getBiome(pos); // Only adjust if above the environmental modifier altitude - if (biome.is(BiomeTags.IS_OVERWORLD) && pos.getY() <= ModConfig.temperature.environmentalModifierAltitude && !level.canSeeSky(pos)) + if (level.dimensionType().natural() && pos.getY() <= ModConfig.temperature.environmentalModifierAltitude && !level.canSeeSky(pos)) return current; // Check if biome uses seasonal effects