mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Bug fix
This commit is contained in:
parent
127978615c
commit
94a3c92b36
62 changed files with 371 additions and 297 deletions
|
|
@ -16,7 +16,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null)
|
||||
{
|
||||
var botList = client.GetLoadedChatBots();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null)
|
||||
{
|
||||
Inventory.Container? inventory = client.GetInventory(0);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null)
|
||||
{
|
||||
var invList = client.GetInventories();
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null && context.Nodes.Count >= 2)
|
||||
{
|
||||
string invName = context.Nodes[1].Range.Get(builder.Input);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
string[] args = builder.Remaining.Split(' ', StringSplitOptions.TrimEntries);
|
||||
if (args.Length == 0 || (args.Length == 1 && string.IsNullOrWhiteSpace(args[0])))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null)
|
||||
{
|
||||
var bot = (Map?)client.GetLoadedChatBots().Find(bot => bot.GetType().Name == "Map");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace MinecraftClient.CommandHandler.ArgumentType
|
|||
|
||||
public override Task<Suggestions> ListSuggestions<TSource>(CommandContext<TSource> context, SuggestionsBuilder builder)
|
||||
{
|
||||
McClient? client = CmdResult.client;
|
||||
McClient? client = CmdResult.currentHandler;
|
||||
if (client != null)
|
||||
{
|
||||
var entityList = client.GetEntities().Values.ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue