Fix another error

This commit is contained in:
adrido 2015-07-08 06:27:10 +02:00
parent 1a0f19c244
commit 0fde3f78de

@ -145,7 +145,7 @@ end
cannons.on_construct = function(pos) cannons.on_construct = function(pos)
local node = minetest.get_node({x = pos.x ,y = pos.y-1, z = pos.z}) local node = minetest.get_node({x = pos.x ,y = pos.y-1, z = pos.z})
if minetest.get_item_group(itemstack:get_name(), "cannonstand")>=1 then if minetest.get_item_group(node.name, "cannonstand")>=1 then
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("formspec", cannons.formspec) meta:set_string("formspec", cannons.formspec)
meta:set_string("infotext", "Cannon has no muni and no gunpowder") meta:set_string("infotext", "Cannon has no muni and no gunpowder")