From ee3eebd5293f5590078cd8f3e1ed4369a5e4c53f Mon Sep 17 00:00:00 2001 From: Foz Date: Thu, 14 Dec 2017 21:09:33 -0500 Subject: [PATCH] Improve drop name extraction logic. This one line deletes characters up to and including the last colon wherever that may be. --- stairsplus/registrations.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index 7c5ad50..0bef35d 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -62,7 +62,7 @@ for _, name in pairs(default_nodes) do if ndef then local drop if type(ndef.drop) == "string" then - drop = ndef.drop:sub((b or 8)+1) + drop = ndef.drop:gsub('.+:', '') end local tiles = ndef.tiles