diff --git a/core/src/main/java/de/erethon/dungeonsxl/trigger/DistanceTrigger.java b/core/src/main/java/de/erethon/dungeonsxl/trigger/DistanceTrigger.java index 3b2c401d..113d4da8 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/trigger/DistanceTrigger.java +++ b/core/src/main/java/de/erethon/dungeonsxl/trigger/DistanceTrigger.java @@ -74,7 +74,7 @@ public class DistanceTrigger extends Trigger { return; } - for (Trigger trigger : gameWorld.getTriggers()) { + for (Trigger trigger : gameWorld.getTriggers().toArray(new Trigger[gameWorld.getTriggers().size()])) { if (trigger instanceof DistanceTrigger) { DistanceTrigger distanceTrigger = (DistanceTrigger) trigger; if (player.getLocation().distance(distanceTrigger.loc) < distanceTrigger.distance) {