From 7cddbf7844b99a0fe063702081213482189efba5 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 00:38:03 +0000 Subject: [PATCH] NoRain --- .../java/net/minecraft/client/renderer/EntityRenderer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/client/renderer/EntityRenderer.java b/src/main/java/net/minecraft/client/renderer/EntityRenderer.java index 6f51153e..c347a2c9 100644 --- a/src/main/java/net/minecraft/client/renderer/EntityRenderer.java +++ b/src/main/java/net/minecraft/client/renderer/EntityRenderer.java @@ -1215,6 +1215,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { } private void addRainParticles() { + if(!W.noRain().isEnabled()){ float f = this.mc.theWorld.getRainStrength(1.0F); if (!this.mc.gameSettings.fancyGraphics) { f /= 2.0F; @@ -1278,7 +1279,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { this.mc.theWorld.playSound(d0, d1, d2, "ambient.weather.rain", 0.2F, 1.0F, false); } } - + } } } @@ -1286,6 +1287,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { * Render rain and snow */ protected void renderRainSnow(float partialTicks) { + if(!W.noRain().isEnabled()){ float f = this.mc.theWorld.getRainStrength(partialTicks); if (f > 0.0F) { this.enableLightmap(); @@ -1433,6 +1435,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { this.disableLightmap(); } } +} /**+ * Setup orthogonal projection for rendering GUI screen overlays