Actual lockers (#195)
Adds storing entities into lockers the way we all know and love. Relies on an implementation of ITileDefinition in https://github.com/space-wizards/space-station-14/pull/193 (just like origin/master) #191
This commit is contained in:
committed by
Pieter-Jan Briers
parent
1fe24eeb12
commit
903961771b
@@ -248,6 +248,10 @@ namespace Content.Server.GameObjects
|
||||
|
||||
// TODO: The item should be dropped to the container our owner is in, if any.
|
||||
item.Owner.Transform.GridPosition = Owner.Transform.GridPosition;
|
||||
if (item.Owner.TryGetComponent<SpriteComponent>(out var spriteComponent))
|
||||
{
|
||||
spriteComponent.RenderOrder = item.Owner.EntityManager.CurrentTick.Value;
|
||||
}
|
||||
|
||||
Dirty();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user