From e008aed60c3e4e5875c94617a6cc6d588f283582 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 12 Jan 2017 00:50:17 -0700 Subject: Update axle to new layout class, drop dug items in the right place --- node_axle.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node_axle.lua') 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) -- cgit v1.2.3