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

@@ -11,12 +11,6 @@ public sealed partial class BotanySystem
if (!TryGetSeed(produce, out var seed))
return;
if (TryComp(uid, out SpriteComponent? sprite))
{
sprite.LayerSetRSI(0, seed.PlantRsi);
sprite.LayerSetState(0, seed.PlantIconState);
}
var solutionContainer = _solutionContainerSystem.EnsureSolution(uid, produce.SolutionName);
solutionContainer.RemoveAllSolution();