1
0
mirror of https://github.com/Wyrrrd/Gun_Turret_Alerts.git synced 2026-03-26 09:09:47 +01:00

Fixed migration breaking multiplayer

Removed migration, fixed missing car index through on_config_changed
This commit is contained in:
Wyrrrd
2021-04-02 14:20:20 +02:00
parent 2b5f19052e
commit 846fb1412e
3 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.4
Date: 2021-03-29
Date: 2021-04-02
Bugfixes:
- Fix multiplayer incompatibility by clearing index on game version/mod version/config change
Locale:
- Added alerts to locale
- Customized alerts with localised name of entities

View File

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

View File

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