summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-03-26 22:12:16 +0200
committerLNJ <git@lnj.li>2017-03-26 22:12:16 +0200
commite784ad6a17b376baa2f26dc7eb542cfcfbc7b673 (patch)
tree056c35cebe3f9a38c047acfe12538b40fdeea8c4 /init.lua
parentd7d41a8ed94d36e0897575b776e0903c19178ee9 (diff)
Fix node not specified in spawn_visual
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 3762b03..0edad10 100644
--- a/init.lua
+++ b/init.lua
@@ -256,6 +256,8 @@ core.register_entity("drawers:visual", {
})
local function spawn_visual(pos)
+ local node = core.get_node(pos)
+
-- data for the new visual
drawers.last_drawer_pos = pos