File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
buildSrc/src/main/kotlin/net/modgarden/flowerbed/gradle
src/client/java/net/modgarden/flowerbed/client/command Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11package net.modgarden.flowerbed.gradle
22
33object Properties {
4- const val MOD_VERSION = " 0.5.0 "
4+ const val MOD_VERSION = " 0.5.1 "
55 const val JAVA_VERSION = 21
66
77 const val GROUP = " net.modgarden"
Original file line number Diff line number Diff line change 33import com .mojang .brigadier .arguments .StringArgumentType ;
44import net .fabricmc .fabric .api .client .command .v2 .ClientCommandManager ;
55import net .fabricmc .fabric .api .client .command .v2 .ClientCommandRegistrationCallback ;
6+ import net .fabricmc .loader .api .FabricLoader ;
67import net .minecraft .client .multiplayer .ClientPacketListener ;
78import net .minecraft .network .chat .Component ;
89
@@ -19,7 +20,11 @@ public static void init() {
1920 ctx .getSource ().sendError (Component .translatable ("commands.flowerbed.shrug.failed.no_server" ));
2021 return 0 ;
2122 }
22- connection .sendChat (message + " ¯\\ _(ツ)_/¯" );
23+ if (FabricLoader .getInstance ().isModLoaded ("styledchat" )) {
24+ connection .sendChat (message + " ¯\\ \\ _(ツ)_/¯" );
25+ } else {
26+ connection .sendChat (message + " ¯\\ _(ツ)_/¯" );
27+ }
2328 return 1 ;
2429 }))
2530 ));
You can’t perform that action at this time.
0 commit comments