1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00

Merge pull request #36 from MaemiKozue/master

Fish Defender stats panel now refreshes on market purchases
This commit is contained in:
Gerkiz 2019-06-07 17:24:50 +02:00 committed by GitHub
commit 82687f2158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,9 @@ local function on_gui_click(event)
end
end
local function on_market_item_purchased(event)
update_fd_stats()
end
local threat_values = {
["small_biter"] = 1,
@ -1400,6 +1403,7 @@ local function on_player_respawned(event)
end
event.add(defines.events.on_gui_click, on_gui_click)
event.add(defines.events.on_market_item_purchased, on_market_item_purchased)
event.add(defines.events.on_player_respawned, on_player_respawned)
event.add(defines.events.on_built_entity, on_built_entity)
event.add(defines.events.on_chunk_generated, on_chunk_generated)