This commit is contained in:
fullwall 2013-02-17 22:42:00 +08:00
parent dd4625de36
commit caa7a7f2d9
1 changed files with 2 additions and 1 deletions

View File

@ -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() {