restore missing picture nodes

This commit is contained in:
cpdef 2018-09-10 16:50:55 +02:00
parent ccf1c71a11
commit e0f35081c9

View File

@ -214,7 +214,11 @@ local on_activate = function(self, staticdata)
self.object:set_properties({textures = { to_imagestring(data.grid, data.res) }}) self.object:set_properties({textures = { to_imagestring(data.grid, data.res) }})
local pos = self.object:getpos() 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 if param2 == 20 then -- if ceiling
self.object:set_properties({textures = {"white.png", to_imagestring(data.grid, data.res) }}) self.object:set_properties({textures = {"white.png", to_imagestring(data.grid, data.res) }})
end end