Fixed ready sign error when group member is not in the instance

This commit is contained in:
Daniel Saukel 2020-10-29 19:13:52 +01:00
parent e6c520e160
commit fdee1355da

View File

@ -710,7 +710,7 @@ public class DGroup implements PlayerGroup {
boolean ready = true;
for (Player player : dGroup.getMembers().getOnlinePlayers()) {
DGamePlayer dPlayer = (DGamePlayer) dPlayers.get(player);
DGamePlayer dPlayer = (DGamePlayer) dPlayers.getGamePlayer(player);
if (dPlayer == null) {
dPlayer = new DGamePlayer(plugin, player, gameWorld);
}