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))
|
if (!TryComp<SharpComponent>(ev.Sharp, out var sharp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
sharp.Butchering.Remove(ev.Entity);
|
||||||
|
|
||||||
if (_containerSystem.IsEntityInContainer(ev.Entity))
|
if (_containerSystem.IsEntityInContainer(ev.Entity))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sharp.Butchering.Remove(ev.Entity);
|
|
||||||
|
|
||||||
var spawnEntities = EntitySpawnCollection.GetSpawns(butcher.SpawnedEntities, _robustRandom);
|
var spawnEntities = EntitySpawnCollection.GetSpawns(butcher.SpawnedEntities, _robustRandom);
|
||||||
var coords = Transform(ev.Entity).MapPosition;
|
var coords = Transform(ev.Entity).MapPosition;
|
||||||
EntityUid popupEnt = default;
|
EntityUid popupEnt = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user