From b7f6e2ff242c15342a30d0f272383f8f23fbae04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:02:27 +0200 Subject: [PATCH] fix multiple entities being summoned when having multiple commands in summon block --- src/datapack/command/execute.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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,