Fix butchering inside of a container making the target unbutcherable permenantly (#12328)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user