From cfb60f04ef232b6215c261053dbed26f29beb63f Mon Sep 17 00:00:00 2001 From: adrido Date: Fri, 10 Jul 2015 18:09:44 +0200 Subject: [PATCH] fix creative mode --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index b39385a..aae04d2 100644 --- a/functions.lua +++ b/functions.lua @@ -144,8 +144,8 @@ if default and default.gui_slots then end cannons.on_construct = function(pos) - local node = minetest.get_node({x = pos.x ,y = pos.y-1, z = pos.z}) - if minetest.get_item_group(node.name, "cannonstand")>=1 then + local node = minetest.get_node({x = pos.x ,y = pos.y, z = pos.z}) + if minetest.registered_items[node.name].cannons then local meta = minetest.get_meta(pos) meta:set_string("formspec", cannons.formspec) meta:set_string("infotext", "Cannon has no muni and no gunpowder")