Forgot to update local usage
Created a local player variable and forgot to update the older references.
This commit is contained in:
parent
a478d6a6b5
commit
58f46be359
|
@ -85,8 +85,8 @@ public final class ObsidianReplaceModule extends Module {
|
||||||
final PlacementRequest placementRequest = placementRequests.poll();
|
final PlacementRequest placementRequest = placementRequests.poll();
|
||||||
final BlockPos position = placementRequest.getBlockPosition();
|
final BlockPos position = placementRequest.getBlockPosition();
|
||||||
final double playerToBlockDistance = calculateVecDistance(
|
final double playerToBlockDistance = calculateVecDistance(
|
||||||
minecraft.player.getPositionEyes(1.0f), position.getX(),
|
player.getPositionEyes(1.0f),
|
||||||
position.getY(), position.getZ());
|
position.getX(), position.getY(), position.getZ());
|
||||||
if (playerToBlockDistance <= getReachDistance(minecraft))
|
if (playerToBlockDistance <= getReachDistance(minecraft))
|
||||||
handlePlaceRequest(minecraft, placementRequest);
|
handlePlaceRequest(minecraft, placementRequest);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue