Stopped items getting stuck in mixers

This commit is contained in:
Pasha Bibko committed 2026-04-28 10:18:15 +01:00
1 parent d53b760546
commit ba386f4c88
1 file changed
+16
@@ -54,10 +54,26 @@ namespace Fruitomation.Game
ItemType type = item.CurrentType;
int typeCount = StoredItems.GetValueOrDefault(type);
if (typeCount < 5)
{
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);
}