Windows Wrong item checked in Tree.tickUpdate

AlanBF

Newcomer
The code that handles what are the items dropped when cutting down a tree reads

C#:
Item item = this.TryGetDrop(drop, r, lastHitBy, "ChopItems", null, false);
if (item != null)
{
    if (drop.ItemId == "709")
    {
        numHardwood += item.Stack;
        addedAdditionalHardwood = true;
    }
    else
    {
        Game1.createMultipleItemDebris(item, new Vector2(tileLocation.X + (float)(this.shakeLeft.Value ? (-4) : 4), tileLocation.Y) * 64f, -2, location);
    }
}
It should read

C#:
Item item = this.TryGetDrop(drop, r, lastHitBy, "ChopItems", null, false);
if (item != null)
{
    if (item.ItemId == "709")
    {
        numHardwood += item.Stack;
        addedAdditionalHardwood = true;
    }
    else
    {
        Game1.createMultipleItemDebris(item, new Vector2(tileLocation.X + (float)(this.shakeLeft.Value ? (-4) : 4), tileLocation.Y) * 64f, -2, location);
    }
}
 
Top