Tether gun fixes (#8129)
This commit is contained in:
@@ -13,6 +13,12 @@ public sealed class GridDraggingCommand : IConsoleCommand
|
||||
public string Help => $"{Command}";
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<GridDraggingSystem>().Enabled ^= true;
|
||||
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<GridDraggingSystem>();
|
||||
system.Enabled ^= true;
|
||||
|
||||
if (system.Enabled)
|
||||
shell.WriteLine("Grid dragging toggled on");
|
||||
else
|
||||
shell.WriteLine("Grid dragging toggled off");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user