diff --git a/README.md b/README.md index 4d4752f..fd0a1c0 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ members of the #factorio IRC on espernet. * Other-mod-friendly patches by @JonasJurczok * Resource monitor shortcut graphics by @npc-strider (aka morley376) * Sorting implementation by @okradonkey +* [The Factorio Discord](https://discord.gg/5N4pQPF), especially Factorio devs helping in #mod-making (especially @Bilka, @Klonan, @Rseding91) ## Remote interface ## diff --git a/changelog.txt b/changelog.txt index 9d170eb..87dab27 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.8.12 +Date: 2019-05-02 + Bugfixes: + - Gracefully handle the inability to place a chart tag (e.g., when the area it belongs to is uncharted). +--------------------------------------------------------------------------------------------------- Version: 0.8.11 Date: 2019-05-02 Bugfixes: diff --git a/resmon.lua b/resmon.lua index 4e791e2..5690d92 100644 --- a/resmon.lua +++ b/resmon.lua @@ -508,6 +508,7 @@ function resmon.update_chart_tag(site) text = site.name, } site.chart_tag = site.force.add_chart_tag(site.surface, chart_tag) + if not site.chart_tag then return end -- may fail if chunk is not currently charted accd. to @Bilka end local display_value = format_number_si(site.amount)