summaryrefslogtreecommitdiff
path: root/lua/visual.lua
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-06-03 17:41:55 +0200
committerWeblate <noreply@weblate.org>2017-06-03 17:41:55 +0200
commit949ea0c7963a78f5ce9ff2e7bcada9e4a97c6162 (patch)
tree98d0013008d3a3ddd81974d24de1e2c999bac640 /lua/visual.lua
parentddd94e25c4d7c443395613453d9a4c3d127dec8e (diff)
parenteb8d2dfd3850260242c41c9942fe58f9d6bf6b21 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'lua/visual.lua')
-rwxr-xr-xlua/visual.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/visual.lua b/lua/visual.lua
index 3287f65..db0f570 100755
--- a/lua/visual.lua
+++ b/lua/visual.lua
@@ -363,6 +363,13 @@ core.register_lbm({
nodenames = {"group:drawer"},
run_at_every_load = true,
action = function(pos, node)
+ local meta = core.get_meta(pos)
+ -- create drawer upgrade inventory
+ meta:get_inventory():set_size("upgrades", 5)
+ -- set the formspec
+ meta:set_string("formspec", drawers.drawer_formspec)
+
+ -- count the drawer visuals
local drawerType = core.registered_nodes[node.name].groups.drawer
local foundVisuals = 0
local objs = core.get_objects_inside_radius(pos, 0.537)