1
0
mirror of https://github.com/Wyrrrd/Gun_Turret_Alerts.git synced 2026-03-25 16:49:50 +01:00

Fix game crash on existing save

This commit is contained in:
Wyrrrd
2021-03-28 17:49:53 +02:00
parent d2bdd2663f
commit 7f0fa8bbcf
4 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.2
Date: 2021-03-28
Bugfixes:
- Added migration to add car index to existing saves
---------------------------------------------------------------------------------------------------
Version: 1.1.1
Date: 2021-03-28
Changes:

View File

@@ -2,7 +2,7 @@
--This mod scans the map for cars and gun-turrets and places alerts when they are low.
script.on_init(function (event)
-- turret index init
-- car and turret index init
global.turret_entities = {}
global.car_entities = {}
end)

View File

@@ -1,6 +1,6 @@
{
"name": "Gun_Turret_Alerts",
"version": "1.1.1",
"version": "1.1.2",
"title": "Ammo Alerts",
"author": "Wyrrrd",
"factorio_version": "1.1",

4
migrations/1.1.2.lua Normal file
View File

@@ -0,0 +1,4 @@
script.on_configuration_changed(function (event)
-- car index init fix
global.car_entities = {}
end)