mirror of
https://github.com/Wyrrrd/Gun_Turret_Alerts.git
synced 2026-04-18 11:44:50 +02:00
Fixed migration breaking multiplayer
Removed migration, fixed missing car index through on_config_changed
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.1.4
|
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:
|
Locale:
|
||||||
- Added alerts to locale
|
- Added alerts to locale
|
||||||
- Customized alerts with localised name of entities
|
- Customized alerts with localised name of entities
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
--This mod scans the map for cars and gun-turrets and places alerts when they are low.
|
--This mod scans the map for cars and gun-turrets and places alerts when they are low.
|
||||||
|
|
||||||
script.on_init(function (event)
|
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.turret_entities = {}
|
||||||
global.car_entities = {}
|
global.car_entities = {}
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
script.on_configuration_changed(function (event)
|
|
||||||
-- car index init fix
|
|
||||||
global.car_entities = {}
|
|
||||||
end)
|
|
||||||
Reference in New Issue
Block a user