diff options
author | Luck <git@lucko.me> | 2020-07-14 18:35:53 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2020-07-14 18:35:53 +0100 |
commit | 014cfe32accf2f3cb2d42e49337809dbb32c2e2d (patch) | |
tree | ea3e1dbd7938c03f8719facf8a44187d3e931f5d /spark-fabric/src/main/java/me | |
parent | 85561633292550209a1461347f8446b54552b391 (diff) | |
download | spark-014cfe32accf2f3cb2d42e49337809dbb32c2e2d.tar.gz spark-014cfe32accf2f3cb2d42e49337809dbb32c2e2d.tar.bz2 spark-014cfe32accf2f3cb2d42e49337809dbb32c2e2d.zip |
Update spark-fabric to 1.16
Diffstat (limited to 'spark-fabric/src/main/java/me')
-rw-r--r-- | spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java index 6e8e9c1..7d7c474 100644 --- a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java +++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java @@ -32,7 +32,7 @@ import me.lucko.spark.fabric.FabricCommandSender; import me.lucko.spark.fabric.FabricPlatformInfo; import me.lucko.spark.fabric.FabricSparkMod; import me.lucko.spark.fabric.FabricTickHook; -import net.fabricmc.fabric.api.registry.CommandRegistry; +import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.server.MinecraftServer; import net.minecraft.server.command.CommandOutput; @@ -48,7 +48,7 @@ public class FabricServerSparkPlugin extends FabricSparkPlugin implements Comman public static void register(FabricSparkMod mod, MinecraftServer server) { FabricServerSparkPlugin plugin = new FabricServerSparkPlugin(mod, server); registerCommands(server.getCommandManager().getDispatcher(), plugin, plugin, "spark"); - CommandRegistry.INSTANCE.register(false, dispatcher -> registerCommands(dispatcher, plugin, plugin, "spark")); + CommandRegistrationCallback.EVENT.register((dispatcher, isDedicated) -> registerCommands(dispatcher, plugin, plugin, "spark")); } private final MinecraftServer server; |