From 2a1c951c8a5756907028975d176e8582b9f50e8a Mon Sep 17 00:00:00 2001 From: ANAND Date: Sat, 30 May 2020 06:52:30 +0530 Subject: [PATCH] shooter: Fix invalid particlespawner definition --- shooter/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shooter/api.lua b/shooter/api.lua index 6e95692..105e8e4 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -214,9 +214,9 @@ shooter.punch_node = function(pos, spec) minetest.remove_node(pos) shooter.play_node_sound(node, pos) if item.tiles then - if item.tiles[1] then - shooter.spawn_particles(pos, {texture=item.tiles[1]}) - end + local texture = item.tiles[1] + texture = (type(texture) == "table") and texture.name or texture + shooter.spawn_particles(pos, {texture=texture}) end if config.node_drops then local object = minetest.add_item(pos, item)