From 0f1b8418a16d1a4e04c9d389a5d9ed551ce2e570 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 27 Feb 2017 17:02:20 -0500 Subject: [PATCH] lighting: actually get meta before trying to use it :) --- homedecor/lighting.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 41995580..776bc932 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -642,12 +642,13 @@ minetest.register_lbm({ param2 = paletteidx end + local meta = minetest.get_meta(pos) + if string.find(name, "table_lamp") or string.find(name, "standing_lamp") then meta:set_string("palette", "ext") end minetest.set_node(pos, { name = new_node, param2 = param2 }) - local meta = minetest.get_meta(pos) meta:set_string("dye", "unifieddyes:"..color) end })