From 6f13b9068e502241f319486426aad850685bf641 Mon Sep 17 00:00:00 2001 From: gnembon Date: Wed, 14 Apr 2021 21:19:10 -0300 Subject: [PATCH] running execute store had no effect, fixes #809 --- src/main/java/carpet/script/utils/FixedCommandSource.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/carpet/script/utils/FixedCommandSource.java b/src/main/java/carpet/script/utils/FixedCommandSource.java index c88e9874..939cb9d2 100644 --- a/src/main/java/carpet/script/utils/FixedCommandSource.java +++ b/src/main/java/carpet/script/utils/FixedCommandSource.java @@ -80,12 +80,6 @@ public class FixedCommandSource extends ServerCommandSource return this; } - @Override - public ServerCommandSource mergeConsumers(ResultConsumer consumer, BinaryOperator> binaryOperator) - { - return this.withConsumer(binaryOperator.apply(this.resultConsumer, consumer)); - } - @Override public ServerCommandSource withSilent() { @@ -190,6 +184,7 @@ public class FixedCommandSource extends ServerCommandSource @Override public void onCommandComplete(CommandContext context, boolean success, int result) { + if (this.resultConsumer != null) resultConsumer.onCommandComplete(context, success, result); } @Override