fix multiple entities being summoned when having multiple commands in summon block

This commit is contained in:
Moritz Hölting 2024-09-21 23:02:27 +02:00
parent aff342a64a
commit b7f6e2ff24
1 changed files with 8 additions and 2 deletions

View File

@ -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,