diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java index 3961999..2bece9c 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java @@ -85,8 +85,8 @@ public final class ObsidianReplaceModule extends Module { final PlacementRequest placementRequest = placementRequests.poll(); final BlockPos position = placementRequest.getBlockPosition(); final double playerToBlockDistance = calculateVecDistance( - minecraft.player.getPositionEyes(1.0f), position.getX(), - position.getY(), position.getZ()); + player.getPositionEyes(1.0f), + position.getX(), position.getY(), position.getZ()); if (playerToBlockDistance <= getReachDistance(minecraft)) handlePlaceRequest(minecraft, placementRequest);