1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

Merge pull request #375 from ComfyFactory/minor_change

Minor fixes
This commit is contained in:
Gerkiz 2023-01-09 11:36:13 +01:00 committed by GitHub
commit 6143d05d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -213,10 +213,12 @@ local function set_train_final_health(final_damage_amount, repair)
if not poison_deployed then
local carriages = Public.get('carriages')
if carriages then
for i = 1, #carriages do
local entity = carriages[i]
Public.enable_poison_defense(entity.position)
if WD.get('wave_number') < 501 then
if carriages then
for i = 1, #carriages do
local entity = carriages[i]
Public.enable_poison_defense(entity.position)
end
end
end

View File

@ -142,7 +142,7 @@ function Public.save_logistics(player)
local slots = {}
for i = 1, 49 do
for i = 1, 100 do
local slot = player.get_personal_logistic_slot(i)
if slot and slot.name then
slots[i] = {name = slot.name, min = slot.min, max = slot.max}