From b1fe3997ddb81999aa1ae4851439f3f6a690b5e6 Mon Sep 17 00:00:00 2001 From: noil Date: Mon, 25 Jan 2021 18:45:57 -0500 Subject: [PATCH] CrystalAura: New values --- .../seppuku/impl/module/combat/CrystalAuraModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/combat/CrystalAuraModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/combat/CrystalAuraModule.java index 542698a..a80d742 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/combat/CrystalAuraModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/combat/CrystalAuraModule.java @@ -50,8 +50,8 @@ public final class CrystalAuraModule extends Module { public final Value place = new Value("Place", new String[]{"AutoPlace"}, "Automatically place crystals.", true); public final Value placeDelay = new Value("PlaceDelay", new String[]{"PlaceDelay", "PlaceDel"}, "The delay to place crystals.", 50.0f, 0.0f, 500.0f, 1.0f); public final Value placeRadius = new Value("PlaceRadius", new String[]{"Radius", "PR", "PlaceRange", "Range"}, "The radius in blocks around the player to process placing in.", 5.0f, 1.0f, 20.0f, 0.5f); - public final Value placeLocalDistance = new Value("PlaceLocalDistance", new String[]{"LocalDistance", "PLD", "LD"}, "The (max)distance away the entity must be from the local player to begin placing.", 6.0f, 1.0f, 10.0f, 0.5f); - public final Value placeMaxBlockDistance = new Value("PlaceMaxBlockDistance", new String[]{"BlockDistance", "MaxBlockDistance", "PMBD", "MBD", "PBD", "BD"}, "The (max)distance an entity must be to the new crystal to begin placing.", 14.0f, 1.0f, 20.0f, 1.0f); + public final Value placeMaxDistance = new Value("PlaceMaxDistance", new String[]{"BlockDistance", "MaxBlockDistance", "PMBD", "MBD", "PBD", "BD"}, "The (max)distance an entity must be to the new crystal to begin placing.", 14.0f, 1.0f, 20.0f, 1.0f); + public final Value placeLocalDistance = new Value("PlaceLocalDistance", new String[]{"LocalDistance", "PLD", "LD"}, "The (max)distance away the entity must be from the local player to begin placing.", 6.0f, 1.0f, 20.0f, 0.5f); public final Value minDamage = new Value("MinDamage", new String[]{"MinDamage", "Min", "MinDmg"}, "The minimum explosion damage calculated to place down a crystal.", 1.5f, 0.0f, 20.0f, 0.5f); public final Value ignore = new Value("Ignore", new String[]{"Ig"}, "Ignore self damage checks.", false); public final Value render = new Value("Render", new String[]{"R"}, "Draws information about recently placed crystals from your player.", true); @@ -113,7 +113,7 @@ public final class CrystalAuraModule extends Module { if (player != mc.player && !player.getName().equals(mc.player.getName()) && player.getHealth() > 0 && Seppuku.INSTANCE.getFriendManager().isFriend(player) == null) { final double distToBlock = entity.getDistance(blockPos.getX() + 0.5f, blockPos.getY() + 1, blockPos.getZ() + 0.5f); final double distToLocal = entity.getDistance(mc.player.posX, mc.player.posY, mc.player.posZ); - if (distToBlock <= this.placeMaxBlockDistance.getValue() && distToLocal <= maxDistanceToLocal) { + if (distToBlock <= this.placeMaxDistance.getValue() && distToLocal <= maxDistanceToLocal) { targetPlayer = player; maxDistanceToLocal = distToLocal; }