mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2025-01-10 13:27:29 +01:00
fix creative mode
This commit is contained in:
parent
0fde3f78de
commit
cfb60f04ef
@ -144,8 +144,8 @@ if default and default.gui_slots then
|
|||||||
end
|
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, z = pos.z})
|
||||||
if minetest.get_item_group(node.name, "cannonstand")>=1 then
|
if minetest.registered_items[node.name].cannons 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")
|
||||||
|
Loading…
Reference in New Issue
Block a user