From 8d80f5731ac98b347b1c46d4e0c9f34fc1ec5a85 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 1 Jul 2016 15:57:21 +0200 Subject: [PATCH] Fix ClassCastException --- .../java/io/github/dre2n/dungeonsxl/trigger/WaveTrigger.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/github/dre2n/dungeonsxl/trigger/WaveTrigger.java b/src/main/java/io/github/dre2n/dungeonsxl/trigger/WaveTrigger.java index 3c98461b..71e593ee 100644 --- a/src/main/java/io/github/dre2n/dungeonsxl/trigger/WaveTrigger.java +++ b/src/main/java/io/github/dre2n/dungeonsxl/trigger/WaveTrigger.java @@ -77,10 +77,9 @@ public class WaveTrigger extends Trigger { */ public static Set getByGameWorld(DGameWorld gameWorld) { Set toReturn = new HashSet<>(); - for (Trigger trigger : gameWorld.getTriggers()) { + for (Trigger trigger : gameWorld.getTriggers(TriggerTypeDefault.WAVE)) { toReturn.add((WaveTrigger) trigger); } - return toReturn; }