mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-28 23:06:38 +02:00
fix for gui crash + poison hidden upgrade spam
This commit is contained in:
parent
b2b60d95fa
commit
328e292be5
@ -3,7 +3,7 @@
|
||||
local Chrono_table = require 'maps.chronosphere.table'
|
||||
local Chrono = require 'maps.chronosphere.chrono'
|
||||
local Token = require 'utils.token'
|
||||
local Tabs = require 'comfy_panel.tabs'
|
||||
local Tabs = require 'comfy_panel.main'
|
||||
|
||||
local module_name = 'ChronoTrain'
|
||||
|
||||
|
@ -243,9 +243,9 @@ function Public.on_pre_player_died(event)
|
||||
local poisons = surface.count_entities_filtered {position = player.position, radius = 10, name = 'poison-cloud'}
|
||||
if poisons > 0 then
|
||||
objective.poison_mastery_unlocked = objective.poison_mastery_unlocked + 1
|
||||
end
|
||||
if objective.poison_mastery_unlocked == 10 then
|
||||
game.print({'chronosphere.message_poison_mastery_unlock'}, {r = 0.98, g = 0.66, b = 0.22})
|
||||
if objective.poison_mastery_unlocked == 10 then
|
||||
game.print({'chronosphere.message_poison_mastery_unlock'}, {r = 0.98, g = 0.66, b = 0.22})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user