public override void Run(string stepName, BinaryPacker.Element el) { if (stepName.Length > 7 && StrawberryRegistry.TrackableContains(el)) { stepName = "entity:strawberry"; } base.Run(stepName, el); }
public override void Run(string stepName, BinaryPacker.Element el) { if (StrawberryRegistry.TrackableContains(el)) { stepName = "entity:strawberry"; } if (StrawberryRegistry.GetRegisteredBerries().Any(berry => berry.entityName == el.Name)) { TotalStrawberriesIncludingUntracked++; } base.Run(stepName, el); }