Skip to content

Commit

Permalink
It appears something wasn't saved
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWitch7 committed Nov 14, 2024
1 parent e5dede4 commit 9115b9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class DefaultSpellExecutor implements SpellExecutor {
SpellInstruction.STACK_ENDEC.fieldOf("instructions", e -> e.instructions),
Fragment.ENDEC.listOf().fieldOf("inputs", e -> e.inputs),
Endec.INT.listOf().fieldOf("scope", e -> e.scope),
ExecutionState.ENDEC.fieldOf("state", DefaultSpellExecutor::getDeepestState),
ExecutionState.ENDEC.fieldOf("state", e -> e.state),
EndecTomfoolery.safeOptionalOf(SpellExecutor.ENDEC).optionalFieldOf("child", e -> e.child, Optional.empty()),
EndecTomfoolery.safeOptionalOf(Fragment.ENDEC).optionalFieldOf("override_return_value", e -> e.overrideReturnValue, Optional.empty()),
DefaultSpellExecutor::new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class FoldingSpellExecutor implements SpellExecutor {
EndecTomfoolery.safeOptionalOf(SpellExecutor.ENDEC).fieldOf("child", e -> e.child),
FoldingSpellExecutor::new
), StructEndecBuilder.of( // <=2.0.0-beta.1 compat
ExecutionState.ENDEC.fieldOf("state", FoldingSpellExecutor::getDeepestState),
SpellPart.ENDEC.fieldOf("executable", FoldingSpellExecutor::spell),
ExecutionState.ENDEC.fieldOf("state", e -> e.state),
SpellPart.ENDEC.fieldOf("executable", e -> e.executable),
ListFragment.ENDEC.fieldOf("list", e -> (ListFragment) e.previous),
EndecTomfoolery.stackOf(Fragment.ENDEC).fieldOf("elements", executor -> executor.values),
EndecTomfoolery.safeOptionalOf(SpellExecutor.ENDEC).optionalFieldOf("child", executor -> executor.child, Optional.empty()),
Expand Down

0 comments on commit 9115b9f

Please sign in to comment.