mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
fix npe in PlayerDataManager::storeIsland
This commit is contained in:
parent
6b92224a5b
commit
f8bd76fd15
@ -192,6 +192,8 @@ public class PlayerDataManager {
|
||||
|
||||
for (Player loopPlayer : Bukkit.getOnlinePlayers()) {
|
||||
PlayerData targetPlayerData = getPlayerData(loopPlayer);
|
||||
if (targetPlayerData == null)
|
||||
continue;
|
||||
|
||||
if (targetPlayerData.getOwner() != null &&
|
||||
targetPlayerData.getOwner().equals(island.getOwnerUUID())) {
|
||||
|
Loading…
Reference in New Issue
Block a user