mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Revert "Remove another setVisible(true) call"
This reverts commit fadbea94d8
.
This commit is contained in:
parent
b2fe56334f
commit
32d1ffbe7c
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ 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;
|
||||||
|
@ -70,6 +71,9 @@ 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