From 946f7002b036d2bc63219701bcc29cdf539ad747 Mon Sep 17 00:00:00 2001 From: AViewFromTheTop <87103914+AViewFromTheTop@users.noreply.github.com> Date: Sat, 2 Dec 2023 15:39:35 -0500 Subject: [PATCH] Update BlockGetterMixin.java --- .../wilderwild/mixin/block/mesoglea/BlockGetterMixin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/frozenblock/wilderwild/mixin/block/mesoglea/BlockGetterMixin.java b/src/main/java/net/frozenblock/wilderwild/mixin/block/mesoglea/BlockGetterMixin.java index 5741f68b2f..d917c58b8c 100644 --- a/src/main/java/net/frozenblock/wilderwild/mixin/block/mesoglea/BlockGetterMixin.java +++ b/src/main/java/net/frozenblock/wilderwild/mixin/block/mesoglea/BlockGetterMixin.java @@ -47,11 +47,11 @@ public interface BlockGetterMixin { @Inject(method = "clip", at = @At("HEAD")) default void wilderWild$setClipInMesoglea(ClipContext context, CallbackInfoReturnable info) { if (context.collisionContext instanceof EntityCollisionContext entityCollisionContext && entityCollisionContext.getEntity() != null) { - BlockState headState = getBlockState(BlockPos.containing(entityCollisionContext.getEntity().getEyePosition())); + BlockState eyeState = getBlockState(BlockPos.containing(entityCollisionContext.getEntity().getEyePosition())); ((InMesogleaInterface)entityCollisionContext.getEntity()).wilderWild$setClipInMesoglea( - headState.is(WilderBlockTags.MESOGLEA) - && headState.hasProperty(BlockStateProperties.WATERLOGGED) - && headState.getValue(BlockStateProperties.WATERLOGGED) + eyeState.is(WilderBlockTags.MESOGLEA) + && eyeState.hasProperty(BlockStateProperties.WATERLOGGED) + && eyeState.getValue(BlockStateProperties.WATERLOGGED) ); } }