From 546dc063d7e019f57bf86fd6662997257bd384c2 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Wed, 27 Sep 2023 23:42:57 +0900 Subject: [PATCH] Fix Message API javadoc --- .../fabric/api/message/v1/ServerMessageDecoratorEvent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java b/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java index 8489de55c2..93c0853f34 100644 --- a/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java +++ b/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java @@ -52,10 +52,9 @@ * ServerMessageDecoratorEvent.EVENT.register(ServerMessageDecoratorEvent.STYLING_PHASE, (sender, message) -> { * // Apply orange color to messages sent by server operators * if (sender != null && sender.server.getPlayerManager().isOperator(sender.getGameProfile())) { - * return CompletableFuture.completedFuture( - * message.copy().styled(style -> style.withColor(0xFFA500))); + * return message.copy().styled(style -> style.withColor(0xFFA500)); * } - * return CompletableFuture.completedFuture(message); + * return message; * }); * } */