mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-20 15:20:25 +00:00
Fix fabric
This commit is contained in:
@@ -4,9 +4,9 @@ import com.dfsek.terra.api.command.CommandSender;
|
||||
import com.dfsek.terra.api.event.events.platform.CommandRegistrationEvent;
|
||||
|
||||
import net.minecraft.server.command.ServerCommandSource;
|
||||
import org.incendo.cloud.SenderMapper;
|
||||
import org.incendo.cloud.execution.ExecutionCoordinator;
|
||||
import org.incendo.cloud.fabric.FabricServerCommandManager;
|
||||
//import org.incendo.cloud.SenderMapper;
|
||||
//import org.incendo.cloud.execution.ExecutionCoordinator;
|
||||
//import org.incendo.cloud.fabric.FabricServerCommandManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -17,16 +17,16 @@ public final class LifecycleEntryPoint {
|
||||
public static void initialize(String modName, LifecyclePlatform platform) {
|
||||
logger.info("Initializing Terra {} mod...", modName);
|
||||
|
||||
FabricServerCommandManager<CommandSender> manager = new FabricServerCommandManager<>(
|
||||
ExecutionCoordinator.simpleCoordinator(),
|
||||
SenderMapper.create(
|
||||
serverCommandSource -> (CommandSender) serverCommandSource,
|
||||
commandSender -> (ServerCommandSource) commandSender)
|
||||
);
|
||||
|
||||
|
||||
manager.brigadierManager().setNativeNumberSuggestions(false);
|
||||
|
||||
platform.getEventManager().callEvent(new CommandRegistrationEvent(manager));
|
||||
// FabricServerCommandManager<CommandSender> manager = new FabricServerCommandManager<>(
|
||||
// ExecutionCoordinator.simpleCoordinator(),
|
||||
// SenderMapper.create(
|
||||
// serverCommandSource -> (CommandSender) serverCommandSource,
|
||||
// commandSender -> (ServerCommandSource) commandSender)
|
||||
// );
|
||||
//
|
||||
//
|
||||
// manager.brigadierManager().setNativeNumberSuggestions(false);
|
||||
//
|
||||
// platform.getEventManager().callEvent(new CommandRegistrationEvent(manager));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user