From e86d0dff9466c1efd170fac7ddf86e1b92a3b242 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 24 Apr 2022 12:30:16 +0200 Subject: [PATCH] TNT node drop particles: Only pick string tiles as fallback --- mods/tnt/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 19fe330c..1c4ead33 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -243,9 +243,9 @@ local function add_effects(pos, radius, drops) local def = minetest.registered_nodes[name] if def then node = { name = name } - end - if def and def.tiles and def.tiles[1] then - texture = def.tiles[1] + if def.tiles and type(def.tiles[1]) == "string" then + texture = def.tiles[1] + end end end end