mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-23 17:09:24 +00:00
feat: add wardrobes to internal map
This commit is contained in:
@@ -143,7 +143,7 @@ public class WardrobeSettings {
|
|||||||
if (!wardrobesNode.node(DISTANCE_PATH).virtual()) distance = wardrobesNode.node(DISTANCE_PATH).getInt();
|
if (!wardrobesNode.node(DISTANCE_PATH).virtual()) distance = wardrobesNode.node(DISTANCE_PATH).getInt();
|
||||||
|
|
||||||
Wardrobe wardrobe = new Wardrobe(id, wardrobeLocation, permission, distance);
|
Wardrobe wardrobe = new Wardrobe(id, wardrobeLocation, permission, distance);
|
||||||
wardrobes.put(id, wardrobe);
|
addWardrobe(wardrobe);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MessagesUtil.sendDebugMessages("Unable to create wardrobe " + id, Level.SEVERE);
|
MessagesUtil.sendDebugMessages("Unable to create wardrobe " + id, Level.SEVERE);
|
||||||
}
|
}
|
||||||
@@ -210,6 +210,10 @@ public class WardrobeSettings {
|
|||||||
return wardrobes.values();
|
return wardrobes.values();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void addWardrobe(Wardrobe wardrobe) {
|
||||||
|
wardrobes.put(wardrobe.getId(), wardrobe);
|
||||||
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static boolean inDistanceOfWardrobe(final Location wardrobeLocation, final Location playerLocation) {
|
public static boolean inDistanceOfWardrobe(final Location wardrobeLocation, final Location playerLocation) {
|
||||||
if (displayRadius == -1) return true;
|
if (displayRadius == -1) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user