File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
src/main/java/top/gregtao/concerto Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ loader_version=0.16.10
99fabric_version =0.77.0+1.18.2
1010
1111# Mod Properties
12- mod_version =1.3.1
12+ mod_version =1.3.2
1313maven_group =top.gregtao.concerto
1414archives_base_name =Concerto-fabric
Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ public class MusicCommand {
4242
4343 public static void register () {
4444 LiteralCommandNode <FabricClientCommandSource > node = ClientCommandManager .DISPATCHER .register (registerPlayerControllers (
45- ClientCommandManager .literal ("music " )
45+ ClientCommandManager .literal ("concerto " )
4646 .then (addMusicCommand ())
4747 .then (insertMusicCommand ())
4848 ));
49- ClientCommandManager .DISPATCHER .register (ClientCommandManager .literal ("concerto" ).redirect (node ));
49+ if (ClientConfig .INSTANCE .options .registerMusicCommand ) {
50+ ClientCommandManager .DISPATCHER .register (ClientCommandManager .literal ("music" ).redirect (node ));
51+ }
5052 }
5153
5254 private static final List <MusicAdderBuilder .MusicGetter <Music >> GETTERS = List .of (
Original file line number Diff line number Diff line change 1414public class MusicRoomCommand {
1515
1616 public static void register () {
17- LiteralCommandNode < FabricClientCommandSource > node = ClientCommandManager .DISPATCHER .register (
17+ ClientCommandManager .DISPATCHER .register (
1818 ClientCommandManager .literal ("musicroom" )
1919 .then (ClientCommandManager .literal ("create" ).executes (context -> {
2020 ClientPlayerEntity player = context .getSource ().getPlayer ();
@@ -100,7 +100,6 @@ public static void register() {
100100 )
101101 )
102102 );
103- ClientCommandManager .DISPATCHER .register (ClientCommandManager .literal ("concerto" ).redirect (node ));
104103 }
105104
106105 public static boolean checkServerAvailable (ClientPlayerEntity player ) {
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public static class ClientConfigOptions {
4646 public int maxCacheSize = 1000 * 1000 * 100 ;
4747 public boolean displayLyrics = true ;
4848 public boolean joinAgentWhenInvited = false ;
49+ public boolean registerMusicCommand = true ;
4950 public String lyricsPosition = "0.5,1-70" ;
5051 public TextAlignment lyricsAlignment = TextAlignment .CENTER ;
5152 public boolean displaySubLyrics = true ;
You can’t perform that action at this time.
0 commit comments