Fix butchering inside of a container making the target unbutcherable permenantly (#12328)

This commit is contained in:
Jacob Tong
2022-10-31 22:52:53 -07:00
committed by GitHub
parent 924d21d2b9
commit dbb23f9cf7

View File

@@ -83,11 +83,11 @@ public sealed class SharpSystem : EntitySystem
if (!TryComp<SharpComponent>(ev.Sharp, out var sharp))
return;
sharp.Butchering.Remove(ev.Entity);
if (_containerSystem.IsEntityInContainer(ev.Entity))
return;
sharp.Butchering.Remove(ev.Entity);
var spawnEntities = EntitySpawnCollection.GetSpawns(butcher.SpawnedEntities, _robustRandom);
var coords = Transform(ev.Entity).MapPosition;
EntityUid popupEnt = default;