mirror of
https://repo.or.cz/minetest_pedology.git
synced 2024-12-28 02:40:21 +01:00
Change lump itemstrings
… to fix a bug with the turf cuttings as fuels
This commit is contained in:
parent
4d4c28a269
commit
ef825e4a27
6
init.lua
6
init.lua
@ -316,17 +316,17 @@ function pedology.register_sucky_group(basename, basedescription, lumpbasedescri
|
||||
if( maxlump == -1) then
|
||||
drop = nil
|
||||
elseif( w > maxlump) then
|
||||
itemname = "pedology:"..basename.."_lump_"..tostring(maxlump)
|
||||
itemname = "pedology:lump_"..basename.."_"..tostring(maxlump)
|
||||
drop = itemname .. " " .. tostring(dropcount)
|
||||
else
|
||||
itemname = "pedology:"..basename.."_lump_"..tostring(w)
|
||||
itemname = "pedology:lump_"..basename.."_"..tostring(w)
|
||||
drop = itemname .. " " .. tostring(dropcount)
|
||||
itemdef = {
|
||||
description = lumpdescription,
|
||||
inventory_image = "pedology_lump_inv_"..basename.."_"..tostring(w)..".png",
|
||||
wield_image = "pedology_lump_"..basename.."_"..tostring(w)..".png"
|
||||
}
|
||||
minetest.register_craftitem("pedology:"..basename.."_lump_"..tostring(w), itemdef)
|
||||
minetest.register_craftitem("pedology:lump_"..basename.."_"..tostring(w), itemdef)
|
||||
end
|
||||
if(nestedgroups) then
|
||||
groups = additional_groups[w]
|
||||
|
Loading…
Reference in New Issue
Block a user