Skip to content

Commit

Permalink
Fix a command issue on Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikePaladin committed Dec 13, 2023
1 parent 5ca9061 commit 62dc2e3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.commands.CommandSourceStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RegisterClientCommandsEvent;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import org.figuramc.figura.FiguraMod;
Expand All @@ -14,7 +15,7 @@
public class FiguraCommandsForge {
@SuppressWarnings({"unchecked", "rawtypes"})
@SubscribeEvent
public static void registerCommands(RegisterClientCommandsEvent event) {
public static void registerCommands(RegisterCommandsEvent event) {
CommandDispatcher<CommandSourceStack> dispatcher = event.getDispatcher();
CommandDispatcher<FiguraClientCommandSource> casted = (CommandDispatcher) dispatcher;
casted.register(FiguraCommands.getCommandRoot());
Expand Down

0 comments on commit 62dc2e3

Please sign in to comment.