mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Remove unneccessary setVisible() call. Why was this even here? Should fix issues with first person models
This commit is contained in:
parent
e80a27b531
commit
d26568457f
1 changed files with 0 additions and 5 deletions
|
@ -27,7 +27,6 @@ import net.minecraft.client.render.*;
|
||||||
import net.minecraft.client.render.entity.EntityRendererFactory;
|
import net.minecraft.client.render.entity.EntityRendererFactory;
|
||||||
import net.minecraft.client.render.entity.PlayerEntityRenderer;
|
import net.minecraft.client.render.entity.PlayerEntityRenderer;
|
||||||
import net.minecraft.client.render.entity.feature.*;
|
import net.minecraft.client.render.entity.feature.*;
|
||||||
import net.minecraft.client.render.entity.model.*;
|
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Arm;
|
import net.minecraft.util.Arm;
|
||||||
|
@ -75,10 +74,6 @@ public class PlayerPonyRenderer extends PlayerEntityRenderer implements IPonyRen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void scale(AbstractClientPlayerEntity entity, MatrixStack stack, float tickDelta) {
|
protected void scale(AbstractClientPlayerEntity entity, MatrixStack stack, float tickDelta) {
|
||||||
if (getModel() instanceof PlayerEntityModel) {
|
|
||||||
((PlayerEntityModel<?>)getModel()).setVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (manager.getModel().getAttributes().isSitting) {
|
if (manager.getModel().getAttributes().isSitting) {
|
||||||
stack.translate(0, entity.getHeightOffset(), 0);
|
stack.translate(0, entity.getHeightOffset(), 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue