Remove server-side sprite references from botany system (#15886)

This commit is contained in:
Leon Friedrich
2023-04-29 21:03:23 +12:00
committed by GitHub
parent 9c8ffb4575
commit 3e2ffcc02d
4 changed files with 37 additions and 15 deletions

View File

@@ -99,13 +99,6 @@ public sealed partial class BotanySystem : EntitySystem
var seedComp = EnsureComp<SeedComponent>(seed);
seedComp.Seed = proto;
if (TryComp(seed, out SpriteComponent? sprite))
{
// TODO visualizer
// SeedPrototype state will always be seed. Blame the spriter if that's not the case!
sprite.LayerSetSprite(0, new SpriteSpecifier.Rsi(proto.PlantRsi, "seed"));
}
var name = Loc.GetString(proto.Name);
var noun = Loc.GetString(proto.Noun);
var val = Loc.GetString("botany-seed-packet-name", ("seedName", name), ("seedNoun", noun));