This commit is contained in:
2025-04-16 20:23:27 +09:00
parent 2a9e2b7352
commit 0ee26f5310

View File

@@ -109,10 +109,13 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
function space_white_science() function space_white_science()
local surface = game.surfaces['space-platform'] local surface = game.surfaces['space-platform']
local hub_init = surface.can_place_entity{name='space-platform-hub', position={0, 0}, force='neutral'}
if hub_init then if surface then
surface.create_entity{name='space-platform-hub', position={0, 0}, force='neutral'} local hub_init = surface.can_place_entity{name='space-platform-hub', position={0, 0}, force='neutral'}
if hub_init then
surface.create_entity{name='space-platform-hub', position={0, 0}, force='neutral'}
end
end end
end end