Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Fix possible nil crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith committed Sep 15, 2019
1 parent 9dcccad commit 7a8b8d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,15 @@ local function get_recipe_fs(data, fs)
for j = 1, #replacements do
local replacement = replacements[j]
if replacement[1] == item then
label = label .. "\nR"
label = "\nR"
replace = replacement[2]
end
end
end

fs[#fs + 1] = fmt(FMT.item_image_button,
X, Y + (sfinv_only and 0.7 or 0),
btn_size, btn_size, item, clean_name(item), ESC(label))
btn_size, btn_size, item, clean_name(item), ESC(label) or "")

local burntime = fuel_cache[item] and fuel_cache[item].burntime

Expand Down

0 comments on commit 7a8b8d1

Please sign in to comment.