1.20.4
This commit is contained in:
parent
70e94de967
commit
d1a23a7f8c
2 changed files with 13 additions and 13 deletions
|
@ -4,9 +4,9 @@ org.gradle.parallel=true
|
|||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.19.4
|
||||
yarn_mappings=1.19.4+build.2
|
||||
loader_version=0.14.19
|
||||
minecraft_version=1.20.4
|
||||
yarn_mappings=1.20.4+build.3
|
||||
loader_version=0.15.3
|
||||
|
||||
# Mod Properties
|
||||
mod_version = rolling
|
||||
|
@ -14,4 +14,4 @@ org.gradle.parallel=true
|
|||
archives_base_name = infocommands
|
||||
|
||||
# Dependencies
|
||||
fabric_version=0.79.0+1.19.4
|
||||
fabric_version=0.91.3+1.20.4
|
||||
|
|
|
@ -63,7 +63,7 @@ public class InfoCommands implements ModInitializer {
|
|||
output.append(Text.literal(name).formatted(Formatting.GREEN));
|
||||
}
|
||||
|
||||
context.getSource().sendFeedback(output, false);
|
||||
context.getSource().sendFeedback(() -> output, false);
|
||||
return Command.SINGLE_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -73,13 +73,13 @@ public class InfoCommands implements ModInitializer {
|
|||
final ModContainer minecraftContainer = loader.getModContainer("minecraft").get();
|
||||
final ModContainer loaderContainer = loader.getModContainer("fabricloader").get();
|
||||
|
||||
context.getSource().sendFeedback(
|
||||
Text.literal("This server is running Fabric Loader version ")
|
||||
.append(Text.literal(loaderContainer.getMetadata().getVersion().toString()))
|
||||
.append(Text.literal(" (on MC "))
|
||||
.append(Text.literal(minecraftContainer.getMetadata().getVersion().toString()))
|
||||
.append(Text.literal(")"))
|
||||
, false);
|
||||
final Text text = Text.literal("This server is running Fabric Loader version ")
|
||||
.append(Text.literal(loaderContainer.getMetadata().getVersion().toString()))
|
||||
.append(Text.literal(" (on MC "))
|
||||
.append(Text.literal(minecraftContainer.getMetadata().getVersion().toString()))
|
||||
.append(Text.literal(")"));
|
||||
|
||||
context.getSource().sendFeedback(() -> text, false);
|
||||
|
||||
return Command.SINGLE_SUCCESS;
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class InfoCommands implements ModInitializer {
|
|||
output.append(list);
|
||||
}
|
||||
|
||||
context.getSource().sendFeedback(output, false);
|
||||
context.getSource().sendFeedback(() -> output, false);
|
||||
|
||||
return Command.SINGLE_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue