mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-06 00:08:11 +01:00
Fix DGroup dungeon entering issues
This commit is contained in:
parent
1f2791792b
commit
f266f00412
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user