Fix Planet Weather crashing, by shoving new grids 150 tiles away.

This commit is contained in:
Coryler 2026-06-10 18:31:58 +02:00
parent 03fe729471
commit e90bc7332f
1 changed files with 2 additions and 1 deletions

View File

@ -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);