From 992c064532ed09576fd06a52d19a6c98525efde3 Mon Sep 17 00:00:00 2001 From: EmoGarbage404 Date: Tue, 28 May 2024 13:01:05 -0400 Subject: [PATCH] message --- Robust.Server/Placement/PlacementManager.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Robust.Server/Placement/PlacementManager.cs b/Robust.Server/Placement/PlacementManager.cs index 6cf059616d7..85e9e709d36 100644 --- a/Robust.Server/Placement/PlacementManager.cs +++ b/Robust.Server/Placement/PlacementManager.cs @@ -172,16 +172,10 @@ public void HandlePlacementRequest(MsgPlacement msg) } } - var created = _entityManager.SpawnEntity(entityTemplateName, coordinates); + var created = _entityManager.Spawn(entityTemplateName, _xformSystem.ToMapCoordinates(coordinates), rotation: dirRcv.ToAngle()); var placementCreateEvent = new PlacementEntityEvent(created, coordinates, PlacementEventAction.Create, msg.MsgChannel.UserId); _entityManager.EventBus.RaiseEvent(EventSource.Local, placementCreateEvent); - - // Some entities immediately delete themselves - if (_entityManager.EntityExists(created)) - { - _entityManager.GetComponent(created).LocalRotation = dirRcv.ToAngle(); - } } else {