mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Remove IsFood method from Item class
This commit is contained in:
parent
b1121e91e3
commit
3f9b084a45
3 changed files with 3 additions and 27 deletions
|
|
@ -50,7 +50,7 @@ namespace MinecraftClient.ChatBots
|
|||
Container inventory = GetPlayerInventory();
|
||||
bool found = false;
|
||||
LastSlot = CurrentSlot;
|
||||
if (inventory.Items.ContainsKey(CurrentSlot + 36) && ItemTypeExtensions.IsFood(inventory.Items[CurrentSlot + 36].Type))
|
||||
if (inventory.Items.ContainsKey(CurrentSlot + 36) && inventory.Items[CurrentSlot + 36].Type.IsFood())
|
||||
{
|
||||
// no need to change slot
|
||||
found = true;
|
||||
|
|
@ -60,7 +60,7 @@ namespace MinecraftClient.ChatBots
|
|||
for (int i = 36; i <= 44; i++)
|
||||
{
|
||||
if (!inventory.Items.ContainsKey(i)) continue;
|
||||
if (inventory.Items[i].IsFood())
|
||||
if (inventory.Items[i].Type.IsFood())
|
||||
{
|
||||
int slot = i - 36;
|
||||
ChangeSlot((short)slot);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue