瀏覽代碼

TNT node drop particles: Only pick string tiles as fallback

Lars Mueller 2 年之前
父節點
當前提交
111a42f193
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mods/tnt/init.lua

+ 3 - 3
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