This commit is contained in:
2025-06-20 13:43:25 +09:00
parent c3befe514d
commit b71b5fe5f1
3 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 3.0.119
Date: 2025-06-29
Changes:
- [CL] .
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 3.0.118 Version: 3.0.118
Date: 2025-06-22 Date: 2025-06-22

View File

@@ -146,7 +146,7 @@ local function entity_destroy(event)
end end
script.on_init(function() script.on_init(function()
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-') then if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
for _, player in pairs(game.players) do for _, player in pairs(game.players) do
gui_create(player) gui_create(player)
end end
@@ -154,7 +154,7 @@ script.on_init(function()
end) end)
script.on_configuration_changed(function() script.on_configuration_changed(function()
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-') then if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
for _, player in pairs(game.players) do for _, player in pairs(game.players) do
gui_create(player) gui_create(player)
@@ -165,7 +165,7 @@ script.on_configuration_changed(function()
end end
end) end)
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-' then if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '' then
script.on_nth_tick(3600, function(_) script.on_nth_tick(3600, function(_)
for _, s in pairs(game.surfaces) do for _, s in pairs(game.surfaces) do
local ec = s.find_entities_filtered{type='cargo-landing-pad', force='player'} local ec = s.find_entities_filtered{type='cargo-landing-pad', force='player'}
@@ -219,7 +219,7 @@ if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-'
end) end)
end end
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '-') then if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
script.on_event(defines.events.on_player_created, function(event) script.on_event(defines.events.on_player_created, function(event)
gui_create(game.players[event.player_index]) gui_create(game.players[event.player_index])
end) end)

View File

@@ -1,8 +1,8 @@
{ {
"name": "PHI-CL", "name": "PHI-CL",
"version": "3.0.118", "version": "3.0.119",
"factorio_version": "2.0", "factorio_version": "2.0",
"date": "2025-06-22", "date": "2025-06-29",
"title": "Phidias Collection", "title": "Phidias Collection",
"author": "PHIDIAS0303", "author": "PHIDIAS0303",
"contributers": "", "contributers": "",