From a32fa2ab46e41fbdaa34911be79d71c6f1b59874 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Mon, 22 Jun 2020 19:03:41 +0200 Subject: [PATCH] Fix MFD end sign; resolves #814 --- core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java | 1 + .../java/de/erethon/dungeonsxl/player/DInstancePlayer.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java index f4f82bf8..2ea9342c 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java @@ -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()); diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DInstancePlayer.java b/core/src/main/java/de/erethon/dungeonsxl/player/DInstancePlayer.java index 09b069f6..e6b73135 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DInstancePlayer.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DInstancePlayer.java @@ -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() {