Skip to content

Commit

Permalink
fix: fix up preprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
70CentsApple committed Aug 30, 2024
1 parent 2b06383 commit c80526e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
import net.apple70cents.chattools.config.ConfigScreenGenerator;
import net.apple70cents.chattools.config.ConfigStorage;
import net.apple70cents.chattools.config.SpecialUnits;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
import net.minecraft.client.MinecraftClient;
import net.minecraft.command.CommandRegistryAccess;
import net.minecraft.command.argument.TextArgumentType;
import net.minecraft.text.MutableText;
import net.minecraft.text.Style;
Expand All @@ -26,6 +23,11 @@

import static net.minecraft.server.command.CommandManager.argument;
import static net.minecraft.server.command.CommandManager.literal;

//#if MC>=11900
import net.minecraft.command.CommandRegistryAccess;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
//#else
// fabric v2 begin to work since 1.19
//$$ import net.fabricmc.fabric.api.client.command.v1.ClientCommandManager;
Expand Down

0 comments on commit c80526e

Please sign in to comment.