Various renames and fixes

This commit is contained in:
Motschen
2022-10-31 00:03:25 +01:00
parent 0c23fa4f53
commit 0e7478b5e5
10 changed files with 38 additions and 30 deletions

View File

@@ -4,7 +4,7 @@ import com.mojang.brigadier.arguments.DoubleArgumentType;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import eu.midnightdust.lib.util.PlatformVariables;
import eu.midnightdust.lib.util.PlatformFunctions;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.Text;
@@ -30,7 +30,7 @@ public class AutoCommand {
command();
LiteralArgumentBuilder<ServerCommandSource> finalized = CommandManager.literal("midnightconfig").requires(source -> source.hasPermissionLevel(2)).then(command);
PlatformVariables.registerCommand(finalized); commands.add(finalized);
PlatformFunctions.registerCommand(finalized); commands.add(finalized);
}
private void command() {