!undo player data loading

This commit is contained in:
Indyuce 2022-01-16 00:40:44 +01:00
parent 7efc7133f7
commit 7efc388428

View File

@ -32,9 +32,7 @@ public abstract class PlayerDataManager {
* @return Player data, if it's loaded
*/
public PlayerData get(UUID uuid) {
if(isLoaded(uuid))
return Objects.requireNonNull(data.get(uuid), "Player data is not loaded");
else return setup(uuid);
return Objects.requireNonNull(data.get(uuid), "Player data is not loaded");
}
/**