Save seed data in components and remove the seed-database (#7499)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using Content.Server.Botany.Components;
|
||||
using Content.Server.Botany.Components;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Server.Botany.Systems;
|
||||
|
||||
@@ -10,7 +8,7 @@ public sealed partial class BotanySystem
|
||||
{
|
||||
public void ProduceGrown(EntityUid uid, ProduceComponent produce)
|
||||
{
|
||||
if (!_prototypeManager.TryIndex<SeedPrototype>(produce.SeedName, out var seed))
|
||||
if (!TryGetSeed(produce, out var seed))
|
||||
return;
|
||||
|
||||
if (TryComp(uid, out SpriteComponent? sprite))
|
||||
|
||||
Reference in New Issue
Block a user