9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 20:39:13 +00:00

clean: deprecate inDistanceOfWardrobe and inDistanceOfStatic

This commit is contained in:
LoJoSho
2023-05-23 14:30:58 -05:00
parent 04810b91ef
commit 0aac0a2377

View File

@@ -208,12 +208,14 @@ public class WardrobeSettings {
return wardrobes.values();
}
@Deprecated
public static boolean inDistanceOfWardrobe(final Location wardrobeLocation, final Location playerLocation) {
if (displayRadius == -1) return true;
if (!wardrobeLocation.getWorld().equals(playerLocation.getWorld())) return false;
return playerLocation.distanceSquared(wardrobeLocation) <= displayRadius * displayRadius;
}
@Deprecated
public static boolean inDistanceOfStatic(Wardrobe wardrobe, final Location location) {
Location wardrobeLocation = wardrobe.getLocation().getNpcLocation();
if (wardrobeLocation == null) return false;