mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Option for any distance
This commit is contained in:
parent
79aab57abc
commit
068f47b523
@ -95,7 +95,7 @@ public final class Misc {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return first.distanceSquared(second) < (maxDistance * maxDistance);
|
return first.distanceSquared(second) < (maxDistance * maxDistance) || maxDistance == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void dropItems(Location location, Collection<ItemStack> drops) {
|
public static void dropItems(Location location, Collection<ItemStack> drops) {
|
||||||
|
Loading…
Reference in New Issue
Block a user