No longer extended reach

I removed the 0.5 extension to block reach a while ago, so I'm not sure why I left it named that.
This commit is contained in:
Daniel E 2019-11-19 15:37:37 -07:00
parent 0bb08e035d
commit 8070ce9470
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public final class ObsidianReplaceModule extends Module {
final double playerToBlockDistance = calculateReachDistance(
minecraft.player.getPositionEyes(1.0f), position.getX(),
position.getY(), position.getZ());
if (playerToBlockDistance <= getExtendedReachDistance(minecraft))
if (playerToBlockDistance <= getReachDistance(minecraft))
handlePlaceRequest(minecraft, placementRequest);
processHandSwap(handSwapContext, true, minecraft);
@ -109,7 +109,7 @@ public final class ObsidianReplaceModule extends Module {
final double playerToBlockDistance = calculateReachDistance(
minecraft.player.getPositionEyes(1.0f), position.getX(),
position.getY(), position.getZ());
if (playerToBlockDistance <= getExtendedReachDistance(minecraft))
if (playerToBlockDistance <= getReachDistance(minecraft))
buildPlacementRequest(minecraft, position);
}
}
@ -224,7 +224,7 @@ public final class ObsidianReplaceModule extends Module {
return -1;
}
private double getExtendedReachDistance(final Minecraft minecraft) {
private double getReachDistance(final Minecraft minecraft) {
// todo; this is just not right my guy, we should really be verifying
// placements on certain block faces with traces and stuff...
return minecraft.playerController.getBlockReachDistance();