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