Fixed MixinFirstPersonRenderer

This commit is contained in:
Sollace 2019-06-01 21:29:53 +02:00
parent fbe63feffd
commit 7fbcc56d5e

View file

@ -13,12 +13,11 @@ import net.minecraft.client.render.model.json.ModelTransformation;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
@SuppressWarnings("deprecation") // ItemCameraTransforms is deprecated by forge but we still need it.
@Mixin(FirstPersonRenderer.class)
public class MixinFirstPersonRenderer {
@Redirect(method = "renderFirstPersonItem("
+ "Lnet/minecraft/client/entity/AbstractClientPlayer;FF"
+ "Lnet/minecraft/client/network/AbstractClientPlayerEntity;FF"
+ "Lnet/minecraft/util/Hand;F"
+ "Lnet/minecraft/item/ItemStack;F)V",
at = @At(value = "INVOKE",