mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
pulled the mined item code out to determine if that is causing on death desyncs
This commit is contained in:
parent
d7ba450760
commit
ad58b95d68
@ -31,7 +31,7 @@ end
|
||||
|
||||
local init = true
|
||||
local function on_player_mined_item(event)
|
||||
if init then
|
||||
if init then
|
||||
game.forces.enemy.research_all_technologies() --avoids losing logstics slot configuration on force toggle
|
||||
init = false
|
||||
end
|
||||
@ -45,4 +45,4 @@ end
|
||||
|
||||
Event.register(defines.events.on_player_ammo_inventory_changed, ammo_changed)
|
||||
Event.register(defines.events.on_player_deconstructed_area, on_player_deconstructed_area)
|
||||
Event.register(defines.events.on_player_mined_entity, on_player_mined_item)
|
||||
--Event.register(defines.events.on_player_mined_entity, on_player_mined_item)
|
||||
|
Loading…
Reference in New Issue
Block a user