fix multiple entities being summoned when having multiple commands in summon block
This commit is contained in:
parent
aff342a64a
commit
b7f6e2ff24
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue