mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix all warnings & Trim (#2226)
* Fix AutoFishing crash * Fix all warnings * Remove DotNetZip. * Fix the usage of HttpClient.
This commit is contained in:
parent
4aa6c1c99f
commit
1d52d1eadd
227 changed files with 2201 additions and 43564 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using MinecraftClient.Inventory;
|
||||
|
||||
namespace MinecraftClient.Commands
|
||||
|
|
@ -14,17 +13,16 @@ namespace MinecraftClient.Commands
|
|||
|
||||
public override string CmdUsage { get { return "/dropitem <itemtype>"; } }
|
||||
|
||||
public override string Run(McClient handler, string command, Dictionary<string, object> localVars)
|
||||
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
|
||||
{
|
||||
if (!handler.GetInventoryEnabled())
|
||||
{
|
||||
return Translations.Get("extra.inventory_required");
|
||||
}
|
||||
if (hasArg(command))
|
||||
if (HasArg(command))
|
||||
{
|
||||
string arg = getArg(command);
|
||||
ItemType itemType;
|
||||
if (Enum.TryParse(arg, true, out itemType))
|
||||
string arg = GetArg(command);
|
||||
if (Enum.TryParse(arg, true, out ItemType itemType))
|
||||
{
|
||||
int inventoryId;
|
||||
var inventories = handler.GetInventories();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue