mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix current slot may reset to 0 after auto eating
This commit is contained in:
parent
2e1e79bcef
commit
044c19114c
1 changed files with 1 additions and 1 deletions
|
|
@ -1599,6 +1599,7 @@ namespace MinecraftClient
|
|||
{
|
||||
Container inventory = inventories[0];
|
||||
bool found = false;
|
||||
LastSlot = CurrentSlot;
|
||||
if (inventory.Items.ContainsKey(CurrentSlot + 36) && inventory.Items[CurrentSlot + 36].IsFood())
|
||||
{
|
||||
// no need to change slot
|
||||
|
|
@ -1606,7 +1607,6 @@ namespace MinecraftClient
|
|||
}
|
||||
else
|
||||
{
|
||||
LastSlot = CurrentSlot;
|
||||
for (int i = 36; i <= 44; i++)
|
||||
{
|
||||
if (!inventory.Items.ContainsKey(i)) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue