aboutsummaryrefslogtreecommitdiff
path: root/spark-fabric/src/main/java/me/lucko
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-07-21 15:46:13 +0100
committerLuck <git@lucko.me>2020-07-21 15:46:13 +0100
commite465d47bd93cbf4ffee8ac27200db0a64e064197 (patch)
treea20b4fd7368e93fcbd796b19d3dab803f9e3bb63 /spark-fabric/src/main/java/me/lucko
parentdeb6f7cc5e1c2d684154e35992527e048c9aeb66 (diff)
downloadspark-e465d47bd93cbf4ffee8ac27200db0a64e064197.tar.gz
spark-e465d47bd93cbf4ffee8ac27200db0a64e064197.tar.bz2
spark-e465d47bd93cbf4ffee8ac27200db0a64e064197.zip
Fix compile
Diffstat (limited to 'spark-fabric/src/main/java/me/lucko')
-rw-r--r--spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
index d0bac92..dc6be44 100644
--- a/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
+++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/FabricCommandSender.java
@@ -32,6 +32,8 @@ import net.minecraft.text.Text;
import java.util.UUID;
public class FabricCommandSender extends AbstractCommandSender<CommandOutput> {
+ private static final UUID NIL_UUID = new UUID(0, 0);
+
private final FabricSparkPlugin plugin;
public FabricCommandSender(CommandOutput commandOutput, FabricSparkPlugin plugin) {
@@ -61,7 +63,7 @@ public class FabricCommandSender extends AbstractCommandSender<CommandOutput> {
@Override
public void sendMessage(Component message) {
Text component = Text.Serializer.fromJson(GsonComponentSerializer.INSTANCE.serialize(message));
- super.delegate.sendMessage(component);
+ super.delegate.sendSystemMessage(component, NIL_UUID);
}
@Override