Goes in-game now
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Content.Server.Interaction
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var player = shell.Player as IPlayerSession;
|
||||
if (player?.AttachedEntity == null)
|
||||
if (player?.AttachedEntity is not {} attached)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -49,9 +49,9 @@ namespace Content.Server.Interaction
|
||||
}
|
||||
|
||||
var mapManager = IoCManager.Resolve<IMapManager>();
|
||||
var playerGrid = _entities.GetComponent<TransformComponent>(player.AttachedEntity).GridID;
|
||||
var playerGrid = _entities.GetComponent<TransformComponent>(attached).GridID;
|
||||
var mapGrid = mapManager.GetGrid(playerGrid);
|
||||
var playerPosition = _entities.GetComponent<TransformComponent>(player.AttachedEntity).Coordinates;
|
||||
var playerPosition = _entities.GetComponent<TransformComponent>(attached).Coordinates;
|
||||
var tileDefinitionManager = IoCManager.Resolve<ITileDefinitionManager>();
|
||||
|
||||
for (var i = -radius; i <= radius; i++)
|
||||
|
||||
Reference in New Issue
Block a user