Remove unneccessary setVisible() call. Why was this even here? Should fix issues with first person models

This commit is contained in:
Sollace 2023-03-23 17:16:16 +00:00
parent e80a27b531
commit d26568457f

View file

@ -27,7 +27,6 @@ import net.minecraft.client.render.*;
import net.minecraft.client.render.entity.EntityRendererFactory;
import net.minecraft.client.render.entity.PlayerEntityRenderer;
import net.minecraft.client.render.entity.feature.*;
import net.minecraft.client.render.entity.model.*;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.minecraft.util.Arm;
@ -75,10 +74,6 @@ public class PlayerPonyRenderer extends PlayerEntityRenderer implements IPonyRen
@Override
protected void scale(AbstractClientPlayerEntity entity, MatrixStack stack, float tickDelta) {
if (getModel() instanceof PlayerEntityModel) {
((PlayerEntityModel<?>)getModel()).setVisible(true);
}
if (manager.getModel().getAttributes().isSitting) {
stack.translate(0, entity.getHeightOffset(), 0);
}