Fix server crash when the seed extractor is used on the dev map (#33312)

handle event when using seed extractor

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
MossyGreySlope 2024-11-16 13:57:33 +10:00 committed by deltanedas
parent fda37fe8ba
commit 875ab71002
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ public sealed class SeedExtractorSystem : EntitySystem
args.User, PopupType.Medium);
QueueDel(args.Used);
args.Handled = true;
var amount = _random.Next(seedExtractor.BaseMinSeeds, seedExtractor.BaseMaxSeeds + 1);
var coords = Transform(uid).Coordinates;