mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-03 18:40:35 +02:00
FIx invalid player textures for visit/leaderboard causing errors
This commit is contained in:
parent
c07aacf676
commit
af583ed710
|
@ -248,10 +248,11 @@ public class Leaderboard {
|
|||
} else {
|
||||
playerName = targetPlayer.getName();
|
||||
|
||||
if (!playerDataManager.hasPlayerData(targetPlayer))
|
||||
playerDataManager.createPlayerData(targetPlayer);
|
||||
|
||||
playerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
if (playerDataManager.hasPlayerData(targetPlayer)) {
|
||||
playerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
} else {
|
||||
playerTexture = new String[] { null, null };
|
||||
}
|
||||
}
|
||||
|
||||
if (leaderboard.getPosition() == 0) {
|
||||
|
|
|
@ -404,10 +404,11 @@ public class Visit {
|
|||
} else {
|
||||
targetPlayerName = targetPlayer.getName();
|
||||
|
||||
if (!playerDataManager.hasPlayerData(targetPlayer))
|
||||
playerDataManager.createPlayerData(targetPlayer);
|
||||
|
||||
targetPlayerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
if (playerDataManager.hasPlayerData(targetPlayer)) {
|
||||
targetPlayerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
} else {
|
||||
targetPlayerTexture = new String[] { null, null };
|
||||
}
|
||||
}
|
||||
|
||||
Island island = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user