mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-12 21:54:04 +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) {
|
public static Set<WaveTrigger> getByGameWorld(DGameWorld gameWorld) {
|
||||||
Set<WaveTrigger> toReturn = new HashSet<>();
|
Set<WaveTrigger> toReturn = new HashSet<>();
|
||||||
for (Trigger trigger : gameWorld.getTriggers()) {
|
for (Trigger trigger : gameWorld.getTriggers(TriggerTypeDefault.WAVE)) {
|
||||||
toReturn.add((WaveTrigger) trigger);
|
toReturn.add((WaveTrigger) trigger);
|
||||||
}
|
}
|
||||||
|
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user