Fix planet command being ran on existing maps (#21775)
This commit is contained in:
@@ -225,7 +225,7 @@ public sealed class GatewayGeneratorSystem : EntitySystem
|
||||
var layer = lootLayers[layerIdx];
|
||||
lootLayers.RemoveSwap(layerIdx);
|
||||
|
||||
_biome.AddMarkerLayer(biomeComp, layer.Id);
|
||||
_biome.AddMarkerLayer(ent.Owner, biomeComp, layer.Id);
|
||||
}
|
||||
|
||||
// - Mobs
|
||||
@@ -237,7 +237,7 @@ public sealed class GatewayGeneratorSystem : EntitySystem
|
||||
var layer = mobLayers[layerIdx];
|
||||
mobLayers.RemoveSwap(layerIdx);
|
||||
|
||||
_biome.AddMarkerLayer(biomeComp, layer.Id);
|
||||
_biome.AddMarkerLayer(ent.Owner, biomeComp, layer.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user