Fixed crash at startup

This commit is contained in:
Sollace 2022-01-12 11:20:35 +02:00
parent bed51c0001
commit 81482c61c7

View file

@ -3,7 +3,6 @@ package com.minelittlepony.unicopia.mixin.client;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.At.Shift;
import org.spongepowered.asm.mixin.injection.Desc;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@ -16,7 +15,6 @@ import net.minecraft.client.render.entity.feature.FeatureRendererContext;
import net.minecraft.client.render.entity.model.BipedEntityModel;
import net.minecraft.client.render.entity.model.EntityModel;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
@ -27,14 +25,8 @@ abstract class MixinLivingEntityRenderer<T extends LivingEntity, M extends Entit
@Inject(method = "render",
at = @At(
value = "INVOKE",
desc = @Desc(
value = "setAngles",
owner = EntityModel.class,
args = { Entity.class, float.class, float.class, float.class, float.class, float.class }
),
shift = Shift.AFTER
)
)
target = "Lnet/minecraft/client/render/entity/model/EntityModel;setAngles(Lnet/minecraft/entity/Entity;FFFFF)V",
shift = Shift.AFTER))
private void onRender(
T entity,
float yaw, float tickDelta,