From 67574400e6e052eaecc79c1a69d282d34cf67657 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 17 Feb 2013 22:42:00 +0800 Subject: [PATCH] Whoops --- src/main/java/net/citizensnpcs/npc/ai/BlockBreaker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/npc/ai/BlockBreaker.java b/src/main/java/net/citizensnpcs/npc/ai/BlockBreaker.java index c6ae00031..3ed246c58 100644 --- a/src/main/java/net/citizensnpcs/npc/ai/BlockBreaker.java +++ b/src/main/java/net/citizensnpcs/npc/ai/BlockBreaker.java @@ -23,6 +23,7 @@ public class BlockBreaker implements Runnable { private boolean isDigging; private int startDigTick; private final int x, y, z; + private BlockBreaker(LivingEntity entity, org.bukkit.block.Block target, Configuration config) { this.entity = ((CraftLivingEntity) entity).getHandle(); this.x = target.getX(); @@ -39,7 +40,7 @@ public class BlockBreaker implements Runnable { } private double distanceSquared() { - return Math.sqrt(Math.pow(entity.locX - x, 2) + Math.pow(entity.locY - y, 2) + Math.pow(entity.locZ - z, 2)); + return Math.pow(entity.locX - x, 2) + Math.pow(entity.locY - y, 2) + Math.pow(entity.locZ - z, 2); } private net.minecraft.server.v1_4_R1.ItemStack getCurrentItem() {