mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +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
|
|
@ -16,7 +16,7 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
if (handler.GetInventoryEnabled())
|
||||
{
|
||||
string[] args = getArgs(command);
|
||||
string[] args = GetArgs(command);
|
||||
if (args.Length >= 1)
|
||||
{
|
||||
int inventoryId;
|
||||
|
|
@ -117,7 +117,7 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
inventory.Items.Values
|
||||
.ToList()
|
||||
.FindAll(item => item.Type == parsedItemType && (shouldUseItemCount ? item.Count == itemCount : true))
|
||||
.FindAll(item => item.Type == parsedItemType && (!shouldUseItemCount || item.Count == itemCount))
|
||||
.ForEach(item =>
|
||||
{
|
||||
if (!foundItems.ContainsKey(inventory.ID))
|
||||
|
|
@ -183,7 +183,7 @@ namespace MinecraftClient.Commands
|
|||
response.Append(Translations.Get("cmd.inventory.inventory"));
|
||||
response.AppendLine(String.Format(" #{0} - {1}§8", inventoryId, inventory.Title));
|
||||
|
||||
string asciiArt = inventory.Type.GetAsciiArt();
|
||||
string? asciiArt = inventory.Type.GetAsciiArt();
|
||||
if (asciiArt != null && Settings.DisplayInventoryLayout)
|
||||
response.AppendLine(asciiArt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue