aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/renderer
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-06-04 22:20:54 +0200
committermakamys <makamys@outlook.com>2021-06-04 22:20:54 +0200
commit81696d7b3dfae030d10672d38eb5b28049733cd5 (patch)
treebfcf153f733d16217125a9071cd45c5184aec7f5 /src/main/java/makamys/lodmod/renderer
parent7efc1268d83511653a015611faeb4a5ead0354be (diff)
downloadNeodymium-81696d7b3dfae030d10672d38eb5b28049733cd5.tar.gz
Neodymium-81696d7b3dfae030d10672d38eb5b28049733cd5.tar.bz2
Neodymium-81696d7b3dfae030d10672d38eb5b28049733cd5.zip
Add option to force vanilla temperature algorithm, fixes SS incompatibility
Serene Seasons changes biomes to be colder in certain seasons, making LODMod think there should be snow there, while no snow is actually generated. Setting this config option to true fixes this mismatch.
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer')
-rw-r--r--src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
index 07bb084..4065b6c 100644
--- a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
+++ b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
@@ -17,6 +17,7 @@ import java.util.List;
import org.lwjgl.BufferUtils;
import makamys.lodmod.LODMod;
+import makamys.lodmod.util.MCUtil;
import net.minecraft.block.Block;
import net.minecraft.block.BlockGrass;
import net.minecraft.block.BlockLeaves;
@@ -125,7 +126,8 @@ public class SimpleChunkMesh extends Mesh {
}
color = (0xFF << 24) | ((color >> 16 & 0xFF) << 0) | ((color >> 8 & 0xFF) << 8) | ((color >> 0 & 0xFF) << 16);
- if(biome.getFloatTemperature(worldX, y, worldZ) < 0.15f) {
+ if((LODMod.forceVanillaBiomeTemperature ? MCUtil.getBiomeTemperatureVanilla(biome, worldX, y, worldZ)
+ : biome.getFloatTemperature(worldX, y, worldZ)) < 0.15f) {
builder.addCube(divX, divZ, worldY + 0.2f, 1f, Blocks.snow_layer.getIcon(1, 0), 0xFFFFFFFF, brightnessMult);
builder.addCube(divX, divZ, worldY - 0.8f, -1, icon, color, brightnessMult);