Skip to content

Commit

Permalink
fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Oct 21, 2023
1 parent 5450187 commit 17c72f3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
import net.minecraft.client.render.entity.model.ModelWithArms;
import net.minecraft.client.render.entity.model.ModelWithHead;
import net.minecraft.client.render.item.HeldItemRenderer;
import net.minecraft.client.render.model.json.ModelTransformation;
import net.minecraft.client.render.model.json.ModelTransformation.Mode;
import net.minecraft.client.render.model.json.ModelTransformationMode;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
Expand All @@ -39,7 +38,7 @@ public PlayerIllusionHeldItemFeatureRenderer(
protected void renderItem(
LivingEntity entity,
ItemStack stack,
ModelTransformation.Mode transformationMode,
ModelTransformationMode transformationMode,
Arm arm,
MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
Expand Down Expand Up @@ -70,7 +69,7 @@ private void renderSpyglass(
HeadFeatureRenderer.translate(matrices, false);
boolean bl = arm == Arm.LEFT;
matrices.translate((bl ? -2.5F:2.5F) / 16.0F, -0.0625, 0.0);
this.playerHeldItemRenderer.renderItem(entity, stack, Mode.HEAD, false, matrices, vertexConsumers, light);
this.playerHeldItemRenderer.renderItem(entity, stack, ModelTransformationMode.HEAD, false, matrices, vertexConsumers, light);
matrices.pop();
}
}

0 comments on commit 17c72f3

Please sign in to comment.