aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-05-24 14:28:11 +0200
committermakamys <makamys@outlook.com>2021-05-24 14:28:11 +0200
commitcc93f1f73972462c84c4f26775494b79045abdfe (patch)
treecf2c5140f3249e5eba0b7c5b3571f176b98a0f58 /src/main/java/makamys
parent2294f876d451d192d91ca8bad9a33bbfe0a33cb3 (diff)
downloadNeodymium-cc93f1f73972462c84c4f26775494b79045abdfe.tar.gz
Neodymium-cc93f1f73972462c84c4f26775494b79045abdfe.tar.bz2
Neodymium-cc93f1f73972462c84c4f26775494b79045abdfe.zip
Fix snow disappearing when it's nearby
Diffstat (limited to 'src/main/java/makamys')
-rw-r--r--src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
index 04c16a4..bef8e46 100644
--- a/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
+++ b/src/main/java/makamys/lodmod/renderer/SimpleChunkMesh.java
@@ -124,7 +124,7 @@ 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) {
- pass1.addCube(worldX, worldY + 0.2f, worldZ, size, size, 1f, Blocks.snow_layer.getIcon(1, 0), Blocks.snow_layer.colorMultiplier(Minecraft.getMinecraft().theWorld, worldX, y, worldZ), brightnessMult);
+ pass1.addCube(worldX, worldY + 0.2f, worldZ, size, size, 1f, Blocks.snow_layer.getIcon(1, 0), 0xFFFFFFFF, brightnessMult);
pass1.addCube(worldX, worldY - 0.8f, worldZ, size, size, worldY + 1 - 0.8f, icon, color, brightnessMult);
} else {
pass1.addCube(worldX, worldY, worldZ, size, size, worldY + 1, icon, color, brightnessMult);