From e0f35081c955a3f4e46380acf020b1f08ee601e1 Mon Sep 17 00:00:00 2001 From: cpdef Date: Mon, 10 Sep 2018 16:50:55 +0200 Subject: [PATCH] restore missing picture nodes --- mods/painting/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/painting/init.lua b/mods/painting/init.lua index 1548a96..7dbb92c 100644 --- a/mods/painting/init.lua +++ b/mods/painting/init.lua @@ -214,7 +214,11 @@ local on_activate = function(self, staticdata) self.object:set_properties({textures = { to_imagestring(data.grid, data.res) }}) local pos = self.object:getpos() - local param2 = minetest.get_node(pos).param2 --wallmounted = first 3 bits + local node = minetest.get_node(pos) + local param2 = node.param2 --wallmounted = first 3 bits + if node.name == "air" then + minetest.swap_node(pos, {name="painting:pic"}) + end if param2 == 20 then -- if ceiling self.object:set_properties({textures = {"white.png", to_imagestring(data.grid, data.res) }}) end