mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Fix freeze bug at a new floor
This commit is contained in:
parent
0b0e676733
commit
4c7b97356a
@ -305,10 +305,15 @@ public class DPlayer {
|
||||
}
|
||||
dGroup.removeUnplayedFloor(dGroup.getMapName());
|
||||
dGroup.setMapName(newFloor);
|
||||
dGroup.setGameWorld(GameWorld.load(newFloor));
|
||||
GameWorld gameWorld = GameWorld.load(newFloor);
|
||||
dGroup.setGameWorld(gameWorld);
|
||||
for (Player player : dGroup.getPlayers()) {
|
||||
DPlayer dPlayer = get(player);
|
||||
dPlayer.checkpoint = dGroup.getGameWorld().getLocStart();
|
||||
dPlayer.setWorld(gameWorld.getWorld());
|
||||
dPlayer.setCheckpoint(dGroup.getGameWorld().getLocStart());
|
||||
if (dPlayer.getWolf() != null) {
|
||||
dPlayer.getWolf().teleport(dPlayer.getCheckpoint());
|
||||
}
|
||||
}
|
||||
dGroup.startGame();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user