Fix server crashing when portal is deleted (#2157)
-Fix server crashing when using the teleporter
This commit is contained in:
@@ -222,7 +222,7 @@ namespace Content.Server.GameObjects.Components.Movement
|
||||
public void Teleport(IEntity user, Vector2 vector)
|
||||
{
|
||||
// Messy maybe?
|
||||
var targetGrid = user.ToCoordinates(vector);
|
||||
var targetGrid = user.Transform.Coordinates.WithPosition(vector);
|
||||
var soundPlayer = EntitySystem.Get<AudioSystem>();
|
||||
|
||||
// If portals use those, otherwise just move em over
|
||||
|
||||
Reference in New Issue
Block a user