mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-25 08:41:26 +01:00
Whoops
This commit is contained in:
parent
a287071beb
commit
67574400e6
@ -23,6 +23,7 @@ public class BlockBreaker implements Runnable {
|
|||||||
private boolean isDigging;
|
private boolean isDigging;
|
||||||
private int startDigTick;
|
private int startDigTick;
|
||||||
private final int x, y, z;
|
private final int x, y, z;
|
||||||
|
|
||||||
private BlockBreaker(LivingEntity entity, org.bukkit.block.Block target, Configuration config) {
|
private BlockBreaker(LivingEntity entity, org.bukkit.block.Block target, Configuration config) {
|
||||||
this.entity = ((CraftLivingEntity) entity).getHandle();
|
this.entity = ((CraftLivingEntity) entity).getHandle();
|
||||||
this.x = target.getX();
|
this.x = target.getX();
|
||||||
@ -39,7 +40,7 @@ public class BlockBreaker implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private double distanceSquared() {
|
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() {
|
private net.minecraft.server.v1_4_R1.ItemStack getCurrentItem() {
|
||||||
|
Loading…
Reference in New Issue
Block a user