diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-02 18:50:03 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-02 18:50:03 -0700 |
commit | 2b5dc41d50965a2190ae7c16cc18129061fa74ab (patch) | |
tree | 50ccc92fb37e0779d63b46880216ed3a5e1ab66d /node_builders.lua | |
parent | ec1ee19893c3e645b34607e9df069f164be7f31c (diff) |
Adding item display entities to the builder heads
Diffstat (limited to 'node_builders.lua')
-rw-r--r-- | node_builders.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/node_builders.lua b/node_builders.lua index 04431fc..7a8cd00 100644 --- a/node_builders.lua +++ b/node_builders.lua @@ -123,7 +123,13 @@ minetest.register_node("digtron:builder", { if build_facing and build_facing >= 0 and build_facing < 24 then meta:set_int("build_facing", math.floor(build_facing)) end - end + end + + digtron.update_builder_item(pos) + end, + + on_destruct = function(pos) + digtron.remove_builder_item(pos) end, -- "builder at pos, imagine that you're in test_pos. If you're willing and able to build from there, take the item you need from inventory. |