mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Fix ClassCastException
This commit is contained in:
parent
85dfd046c2
commit
8d80f5731a
@ -77,10 +77,9 @@ public class WaveTrigger extends Trigger {
|
||||
*/
|
||||
public static Set<WaveTrigger> getByGameWorld(DGameWorld gameWorld) {
|
||||
Set<WaveTrigger> toReturn = new HashSet<>();
|
||||
for (Trigger trigger : gameWorld.getTriggers()) {
|
||||
for (Trigger trigger : gameWorld.getTriggers(TriggerTypeDefault.WAVE)) {
|
||||
toReturn.add((WaveTrigger) trigger);
|
||||
}
|
||||
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user