From feace1317a6e0c63eee34561fa5e3b31baa29311 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 23 Feb 2017 09:50:09 -0500 Subject: [PATCH] fix hard-coded drop --- stairsplus/registrations.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index aab65fe..be08b43 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -46,14 +46,16 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks: for _, name in pairs(default_nodes) do local nodename = "default:"..name - if string.find(name, ":") then + local a,b = string.find(name, ":") + if b then nodename = name + name = string.sub(name, b+1) end local ndef = minetest.registered_nodes[nodename] if ndef then local drop if type(ndef.drop) == "string" then - drop = ndef.drop:sub(9) + drop = ndef.drop:sub((b or 8)+1) end local tiles = ndef.tiles