Forgot to update local usage

Created a local player variable and forgot to update the older references.
This commit is contained in:
Daniel E 2019-11-19 15:41:12 -07:00
parent a478d6a6b5
commit 58f46be359

View File

@ -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);