Skip to content

Commit

Permalink
1.12 support for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixces committed Apr 18, 2024
1 parent cf16c58 commit 2fb5057
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
@Mixin(EntityRenderer.class)
public class EntityRendererMixin_AdjustEyeHeightLighting {

//#if MC==10809
@Redirect(method = "updateRenderer", at = @At(value = "NEW", target = "(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/BlockPos;"))
private BlockPos patcher$accountForEyes(Entity source) {
return new BlockPos(source.getPositionEyes(1.0F));
}
//#endif

}

0 comments on commit 2fb5057

Please sign in to comment.