Small change

This commit is contained in:
2025-11-14 16:14:08 +01:00
parent f750d9fd20
commit 2a0c81f6e5
2 changed files with 4 additions and 4 deletions
@@ -1,6 +1,7 @@
package net.fretux.mindmotion.client;
import net.minecraft.client.model.HumanoidModel;
import net.minecraft.world.entity.LivingEntity;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
@@ -13,7 +14,8 @@ public class IdentityBlindnessFaceHider {
public static void hideFaces(RenderLivingEvent.Pre<?, ?> event) {
if (!ClientData.IDENTITY_BLIND) return;
if (event.getRenderer().getModel() instanceof HumanoidModel<?> model) {
model.setAllVisible(false);
model.head.visible = false;
model.hat.visible = false;
}
}
@@ -83,9 +83,7 @@ public class SanityShaderHandler {
}
PostChain chain = mc.gameRenderer.currentEffect();
if (chain == null) return; // failed to load
// update the Desat uniform on all passes
if (chain == null) return;
try {
for (PostPass pass : getPasses(chain)) {
EffectInstance effect = pass.getEffect();