From ee4cbef811bb8024d0b839c3879ce1988c586cea Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 20 Feb 2022 22:39:40 -0500 Subject: [PATCH] remove unused node registration function --- computers/nodes/node_api.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/computers/nodes/node_api.lua b/computers/nodes/node_api.lua index 5f33377..fac97ef 100644 --- a/computers/nodes/node_api.lua +++ b/computers/nodes/node_api.lua @@ -58,18 +58,6 @@ computers.register = function (name, def) }) end -computers.register_handheld = function (name, def) - if (name:sub(1, 1) == ":") then name = name:sub(2) end - local modname, basename = name:match("^([^:]+):(.*)") - local TEXPFX = modname.."_"..basename.."_inv" - local ONSTATE = modname..":"..basename - minetest.register_craftitem(ONSTATE, { - description = def.description, - inventory_image = TEXPFX..".png", - wield_image = TEXPFX..".png" - }) -end - computers.pixelnodebox = function (size, boxes) local fixed = { } for _, box in ipairs(boxes) do