Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 committed May 28, 2024
1 parent 721408b commit 992c064
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Robust.Server/Placement/PlacementManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TransformComponent>(created).LocalRotation = dirRcv.ToAngle();
}
}
else
{
Expand Down

0 comments on commit 992c064

Please sign in to comment.