From a7d12079f0475f0ca3c4502bc4fe42a63cf84223 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 24 Apr 2022 13:30:45 +0100 Subject: [PATCH] keep in line with default --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 67b847c..2e02774 100644 --- a/init.lua +++ b/init.lua @@ -245,9 +245,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