From 2fb077e795679368027d12086b637070c788c1b0 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 1 May 2022 21:47:54 -0400 Subject: [PATCH] fix potential crash --- fake_fire/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fake_fire/init.lua b/fake_fire/init.lua index 638f9ab6..21f47531 100644 --- a/fake_fire/init.lua +++ b/fake_fire/init.lua @@ -237,8 +237,8 @@ local sandstone_tex = "default_sandstone.png" if not minetest.get_modpath("default") then local sname = minetest.registered_nodes["mapgen_stone"].name local names = sname:split(":") - local nitem = string.gsub(names[2], "stone", "sandstone") - if minetest.registered_nodes[names[1]..":"..nitem] then + local nitem = names[2] and string.gsub(names[2], "stone", "sandstone") or nil + if nitem and minetest.registered_nodes[names[1]..":"..nitem] then sandstone_tex = minetest.registered_nodes[names[1]..":"..nitem].tiles[1] else sandstone_tex = "[combine:16x16^[noalpha^[colorize:#fefebe"