diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 00:50:17 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 00:50:17 -0700 |
commit | e008aed60c3e4e5875c94617a6cc6d588f283582 (patch) | |
tree | e7651fc4027e356b48dafe2fbc88c014f2d1cd32 /node_axle.lua | |
parent | 9f139288845b7aa27bc4a251d6d5ddde713d27b7 (diff) |
Update axle to new layout class, drop dug items in the right placeorigin/layout-refactor
Diffstat (limited to 'node_axle.lua')
-rw-r--r-- | node_axle.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node_axle.lua b/node_axle.lua index 9e62b07..ab36c97 100644 --- a/node_axle.lua +++ b/node_axle.lua @@ -36,10 +36,10 @@ minetest.register_node("digtron:axle", { -- Been too soon since last time the digtron rotated. return end - local image = digtron.get_layout_image(pos, clicker) - digtron.rotate_layout_image(image, node.param2) - if digtron.can_write_layout_image(image) then - digtron.write_layout_image(image) + local image = DigtronLayout.create(pos, clicker) + image:rotate_layout_image(node.param2) + if image:can_write_layout_image() then + image:write_layout_image() minetest.sound_play("whirr", {gain=1.0, pos=pos}) meta = minetest.get_meta(pos) |