Skip to content

Commit

Permalink
Auri skill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWitch7 committed Sep 6, 2024
1 parent 770b59f commit 051ad3f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dev.enjarai.trickster.spell.execution.executor;

import dev.enjarai.trickster.EndecTomfoolery;
import dev.enjarai.trickster.Trickster;
import dev.enjarai.trickster.spell.Fragment;
import dev.enjarai.trickster.spell.SpellContext;
import dev.enjarai.trickster.spell.SpellPart;
Expand Down Expand Up @@ -35,15 +34,15 @@ protected IteratorSpellExecutor(SpellPart executable, List<Fragment> elements, L
super(List.of(), inputs, List.of(), state, child, Optional.empty());
this.executable = executable;
this.list = list;
this.elements.addAll(elements);
this.elements.addAll(elements.reversed());
}

public IteratorSpellExecutor(SpellContext ctx, SpellPart executable, ListFragment list) {
super(new SpellPart(), List.of());
this.state = ctx.executionState().recurseOrThrow(List.of());
this.executable = executable;
this.list = list;
this.elements.addAll(list.fragments());
this.elements.addAll(list.fragments().reversed());
}

@Override
Expand Down

0 comments on commit 051ad3f

Please sign in to comment.