mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Remove another setVisible(true) call
This commit is contained in:
parent
ef33d648e6
commit
fadbea94d8
1 changed files with 0 additions and 4 deletions
|
@ -21,7 +21,6 @@ import net.minecraft.client.render.entity.EntityRendererFactory;
|
||||||
import net.minecraft.client.render.entity.MobEntityRenderer;
|
import net.minecraft.client.render.entity.MobEntityRenderer;
|
||||||
import net.minecraft.client.render.entity.feature.FeatureRenderer;
|
import net.minecraft.client.render.entity.feature.FeatureRenderer;
|
||||||
import net.minecraft.client.render.entity.model.EntityModel;
|
import net.minecraft.client.render.entity.model.EntityModel;
|
||||||
import net.minecraft.client.render.entity.model.PlayerEntityModel;
|
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.entity.mob.MobEntity;
|
import net.minecraft.entity.mob.MobEntity;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
@ -71,9 +70,6 @@ public abstract class AbstractPonyRenderer<T extends MobEntity, M extends Entity
|
||||||
@Override
|
@Override
|
||||||
protected void setupTransforms(T entity, MatrixStack stack, float ageInTicks, float rotationYaw, float partialTicks) {
|
protected void setupTransforms(T entity, MatrixStack stack, float ageInTicks, float rotationYaw, float partialTicks) {
|
||||||
manager.preRenderCallback(entity, stack, partialTicks);
|
manager.preRenderCallback(entity, stack, partialTicks);
|
||||||
if (getModel() instanceof PlayerEntityModel) {
|
|
||||||
((PlayerEntityModel<?>)getModel()).setVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (getModel().getAttributes().isSitting) {
|
if (getModel().getAttributes().isSitting) {
|
||||||
stack.translate(0, 0.125D, 0);
|
stack.translate(0, 0.125D, 0);
|
||||||
|
|
Loading…
Reference in a new issue