diff options
author | Beha <shacknetisp@mail.com> | 2017-03-15 22:27:41 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2017-03-15 22:27:41 -0400 |
commit | 31d29756533c656eddd833e42f6065072203012a (patch) | |
tree | 4e0e8941687df1dfc0a0c112697a75701fcf7bff | |
parent | b5ab247119a61b197dd6d843eb6f3e3c34bde5d2 (diff) |
fix selection box, fix inactive setlabel
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -216,7 +216,7 @@ if on then { -0.5,-0.5,-0.5,0.5,-0.48, 0.5}, { -0.5, 1.45,-0.5,0.5, 1.5, 0.5}, } - cbox = box + cbox = table.copy(box) cbox[5] = nil else box = { @@ -299,6 +299,7 @@ minetest.register_node(nodename, { on_rightclick = function(pos, node, sender) local meta = minetest.get_meta(pos) + formspecs[sender:get_player_name()] = {pos} if on then if vector.distance(sender:get_pos(), pos) > 1 or minetest.get_node(sender:get_pos()).name ~= nodename then minetest.chat_send_player(sender:get_player_name(), "You are not inside the booth.") |