Fix MFD end sign; resolves #814

This commit is contained in:
Daniel Saukel 2020-06-22 19:03:41 +02:00
parent c84f3564d5
commit a32fa2ab46
2 changed files with 5 additions and 0 deletions

View File

@ -642,6 +642,7 @@ public class DGroup implements PlayerGroup {
game.setWorld(gameWorld);
for (DGamePlayer player : getDGamePlayers()) {
player.setInstanceWorld(gameWorld);
player.setLastCheckpoint(gameWorld.getStartLocation(this));
if (player.getWolf() != null) {
player.getWolf().teleport(player.getLastCheckpoint());

View File

@ -57,6 +57,10 @@ public abstract class DInstancePlayer extends DGlobalPlayer implements InstanceP
return instanceWorld.getWorld();
}
public void setInstanceWorld(InstanceWorld instanceWorld) {
this.instanceWorld = instanceWorld;
}
// Players in dungeons never get announcer messages
@Override
public boolean isAnnouncerEnabled() {