Fix seldom seen bug with food trash (#8762)

This commit is contained in:
Chris
2022-06-11 11:33:31 -07:00
committed by GitHub
parent 0a825c3808
commit fdb32b9bb8

View File

@@ -216,7 +216,7 @@ namespace Content.Server.Nutrition.EntitySystems
private void DeleteAndSpawnTrash(FoodComponent component, EntityUid? user = null)
{
//We're empty. Become trash.
var position = EntityManager.GetComponent<TransformComponent>(component.Owner).Coordinates;
var position = Transform(component.Owner).MapPosition;
var finisher = EntityManager.SpawnEntity(component.TrashPrototype, position);
// If the user is holding the item