diff --git a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java index 96df0ddc0..b8e63f9ee 100644 --- a/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/PlayersManager.java @@ -144,8 +144,7 @@ public class PlayersManager { * @param number - a number - 1 is default. Can be any number. */ public void setHomeLocation(User user, Location location, int number) { - addPlayer(user.getUniqueId()); - playerCache.get(user.getUniqueId()).setHomeLocation(location,number); + setHomeLocation(user.getUniqueId(), location,number); } /** @@ -165,8 +164,7 @@ public class PlayersManager { * @param location - the location */ public void setHomeLocation(UUID playerUUID, Location location) { - addPlayer(playerUUID); - playerCache.get(playerUUID).setHomeLocation(location,1); + setHomeLocation(playerUUID, location,1); } /**