Stopped items getting stuck in mixers

This commit is contained in:
Pasha Bibko
2026-04-28 10:18:15 +01:00
parent d53b760546
commit ba386f4c88

View File

@@ -54,10 +54,26 @@ namespace Fruitomation.Game
ItemType type = item.CurrentType; ItemType type = item.CurrentType;
int typeCount = StoredItems.GetValueOrDefault(type); int typeCount = StoredItems.GetValueOrDefault(type);
item.TriggerDestruction(false); if (typeCount < 5)
StoredItems[type] = typeCount + 1; {
StoredItemCount++; item.TriggerDestruction(false);
StoredItems[type] = typeCount + 1;
StoredItemCount++;
}
else
{
item.transform.position = OutputLocation.position;
item.SendToTheGhostRealm();
}
} }
else
{
item.transform.position = OutputLocation.position;
item.SendToTheGhostRealm();
}
}, TriggerType.Enter); }, TriggerType.Enter);
} }