Small change
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user