mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-15 23:10:18 +01:00
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:
parent
80d35c8215
commit
ee3eebd529
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user