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::On(arg, next)
|
||||||
| Self::Positioned(arg, next)
|
| Self::Positioned(arg, next)
|
||||||
| Self::Rotated(arg, next)
|
| Self::Rotated(arg, next)
|
||||||
| Self::Store(arg, next)
|
| Self::Store(arg, next) => next.compile_internal(
|
||||||
| Self::Summon(arg, next) => next.compile_internal(
|
|
||||||
format!("{prefix}{op} {arg} ", op = self.variant_name()),
|
format!("{prefix}{op} {arg} ", op = self.variant_name()),
|
||||||
require_grouping,
|
require_grouping,
|
||||||
options,
|
options,
|
||||||
|
@ -99,6 +98,13 @@ impl Execute {
|
||||||
global_state,
|
global_state,
|
||||||
function_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 {
|
Self::Run(command) => match &**command {
|
||||||
Command::Execute(ex) => ex.compile_internal(
|
Command::Execute(ex) => ex.compile_internal(
|
||||||
prefix,
|
prefix,
|
||||||
|
|
Loading…
Reference in New Issue