diff --git a/src/datapack/command/execute.rs b/src/datapack/command/execute.rs index 2ed0baa..ec56462 100644 --- a/src/datapack/command/execute.rs +++ b/src/datapack/command/execute.rs @@ -75,8 +75,7 @@ impl Execute { | Self::On(arg, next) | Self::Positioned(arg, next) | Self::Rotated(arg, next) - | Self::Store(arg, next) - | Self::Summon(arg, next) => next.compile_internal( + | Self::Store(arg, next) => next.compile_internal( format!("{prefix}{op} {arg} ", op = self.variant_name()), require_grouping, options, @@ -99,6 +98,13 @@ impl Execute { global_state, function_state, ), + Self::Summon(arg, next) => next.compile_internal( + format!("{prefix}{op} {arg} ", op = self.variant_name()), + true, + options, + global_state, + function_state, + ), Self::Run(command) => match &**command { Command::Execute(ex) => ex.compile_internal( prefix,