Fix Planet Weather crashing, by shoving new grids 150 tiles away.
This commit is contained in:
parent
03fe729471
commit
e90bc7332f
|
|
@ -1,3 +1,4 @@
|
|||
using System.Numerics;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Parallax;
|
||||
using Content.Shared._DV.Planet;
|
||||
|
|
@ -56,7 +57,7 @@ public sealed class PlanetSystem : EntitySystem
|
|||
{
|
||||
var map = SpawnPlanet(id, runMapInit: false);
|
||||
var mapId = Comp<MapComponent>(map).MapId;
|
||||
if (!_mapLoader.TryLoadGrid(mapId, path, out var grid))
|
||||
if (!_mapLoader.TryLoadGrid(mapId, path, out var grid, offset: new Vector2(150,150)))
|
||||
{
|
||||
Log.Error($"Failed to load planet grid {path} for planet {id}!");
|
||||
Del(map);
|
||||
|
|
|
|||
Loading…
Reference in New Issue