Fix DGroup dungeon entering issues

This commit is contained in:
Daniel Saukel 2016-05-15 20:56:36 +02:00
parent 1f2791792b
commit f266f00412
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.dre2n</groupId>
<artifactId>dungeonsxl</artifactId>
<version>0.11.2</version>
<version>0.11.3</version>
<packaging>jar</packaging>
<name>DungeonsXL</name>
<url>https://dre2n.github.io</url>

View File

@ -470,16 +470,21 @@ public class DGroup {
continue;
}
boolean ready = true;
for (Player player : dGroup.getPlayers()) {
DGamePlayer dPlayer = DGamePlayer.getByPlayer(player);
if (dPlayer == null) {
new DGamePlayer(player, gameWorld);
dPlayer = new DGamePlayer(player, gameWorld);
}
if (!dPlayer.isReady()) {
return;
ready = false;
}
}
if (!ready) {
return;
}
}
DGroupStartFloorEvent event = new DGroupStartFloorEvent(this, gameWorld);