diff options
author | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
commit | 973c13e84f8e091a6a920779103d96559dcd32a8 (patch) | |
tree | 95741faaa85509216a3a5130a3d8cd48b1b415fd /src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt | |
parent | 4c7bd601c4df4d03536e97e18e4b88d858330ad9 (diff) | |
download | Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.gz Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.bz2 Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.zip |
Switch to yarn mappings
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt b/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt index 125bc86..35671a3 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/NotEnoughUpdates.kt @@ -23,8 +23,8 @@ import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents import net.fabricmc.loader.api.FabricLoader import net.fabricmc.loader.api.Version import net.fabricmc.loader.api.metadata.ModMetadata -import net.minecraft.commands.CommandBuildContext -import net.minecraft.network.chat.Component +import net.minecraft.command.CommandRegistryAccess +import net.minecraft.text.Text import org.apache.logging.log4j.LogManager import org.freedesktop.dbus.connections.impl.DBusConnectionBuilder import java.nio.file.Files @@ -68,16 +68,16 @@ object NotEnoughUpdates : ModInitializer, ClientModInitializer { private fun registerCommands( dispatcher: CommandDispatcher<FabricClientCommandSource>, @Suppress("UNUSED_PARAMETER") - _ctx: CommandBuildContext + _ctx: CommandRegistryAccess ) { dispatcher.register(ClientCommandManager.literal("neureload") .then(ClientCommandManager.literal("fetch").executes { - it.source.sendFeedback(Component.literal("Trying to redownload the repository")) // TODO better reporting + it.source.sendFeedback(Text.literal("Trying to redownload the repository")) // TODO better reporting RepoManager.launchAsyncUpdate() Command.SINGLE_SUCCESS }) .executes { - it.source.sendFeedback(Component.translatable("notenoughupdates.repo.reload.disk")) + it.source.sendFeedback(Text.translatable("notenoughupdates.repo.reload.disk")) RepoManager.reload() Command.SINGLE_SUCCESS }) |