From 8561df034e9418b1c9f90abdd9a76ec59cc3a6ad Mon Sep 17 00:00:00 2001 From: danielmartin0 Date: Mon, 7 Mar 2022 18:54:58 +0000 Subject: [PATCH] patch --- maps/pirates/tick_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maps/pirates/tick_functions.lua b/maps/pirates/tick_functions.lua index 860cb76d..20cd035d 100644 --- a/maps/pirates/tick_functions.lua +++ b/maps/pirates/tick_functions.lua @@ -1217,7 +1217,7 @@ function Public.Kraken_Destroyed_Backup_check(tickinterval) -- a server became b local surface = game.surfaces[boat.surface_name] local some_spawners_should_be_alive = false - for i = 1, Public.kraken_slots do + for i = 1, Kraken.kraken_slots do if memory.active_sea_enemies.krakens[i] then local kraken_data = memory.active_sea_enemies.krakens[i] if kraken_data.step >= 3 then @@ -1228,7 +1228,7 @@ function Public.Kraken_Destroyed_Backup_check(tickinterval) -- a server became b local but_none_are = some_spawners_should_be_alive and #surface.find_entities_flitered{name = 'biter-spawner', force = memory.enemy_force_name} == 0 if but_none_are then - for i = 1, Public.kraken_slots do + for i = 1, Kraken.kraken_slots do if memory.active_sea_enemies.krakens[i] then Kraken.kraken_die(i) end