Improve drop name extraction logic.

This one line deletes characters up to and including the last colon wherever that may be.
This commit is contained in:
Foz 2017-12-14 21:09:33 -05:00
parent 80d35c8215
commit ee3eebd529

View File

@ -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