9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-04 15:41:45 +00:00

feat: check if wardrobe locations are not null

This commit is contained in:
LoJoSho
2023-05-24 15:03:13 -05:00
parent 7439aabfd1
commit a92b4c15f5

View File

@@ -26,6 +26,11 @@ public class WardrobeLocation {
return leaveLocation.clone();
}
public boolean hasAllLocations() {
if (npcLocation == null || viewerLocation == null || leaveLocation == null) return false;
return true;
}
public void setNPCLocation(Location wardrobeLocation) {
this.npcLocation = wardrobeLocation;
}