mirror of
https://github.com/seppukudevelopment/seppuku
synced 2024-12-27 00:52:04 +00:00
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 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user