From f566d0ff26a2fb6371c617513a7f0c08cffbff0f Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 18 Feb 2021 19:05:12 +0100 Subject: [PATCH] Use inventory_image for nodes without tiles for particles --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 3e5ff0d..df4769a 100644 --- a/init.lua +++ b/init.lua @@ -130,8 +130,8 @@ local function is_walkable(ground) end local function create_particles(player, name, ground) - local def = minetest.registered_nodes[ground.name] - local tile = def.tiles[1] or def.inventory_image + local def = minetest.registered_nodes[ground.name] or {} + local tile = def.tiles and def.tiles[1] or def.inventory_image if type(tile) == "table" then tile = tile.name end