mirror of
https://repo.or.cz/minetest_pedology.git
synced 2024-12-28 19:00:18 +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
|
if( maxlump == -1) then
|
||||||
drop = nil
|
drop = nil
|
||||||
elseif( w > maxlump) then
|
elseif( w > maxlump) then
|
||||||
itemname = "pedology:"..basename.."_lump_"..tostring(maxlump)
|
itemname = "pedology:lump_"..basename.."_"..tostring(maxlump)
|
||||||
drop = itemname .. " " .. tostring(dropcount)
|
drop = itemname .. " " .. tostring(dropcount)
|
||||||
else
|
else
|
||||||
itemname = "pedology:"..basename.."_lump_"..tostring(w)
|
itemname = "pedology:lump_"..basename.."_"..tostring(w)
|
||||||
drop = itemname .. " " .. tostring(dropcount)
|
drop = itemname .. " " .. tostring(dropcount)
|
||||||
itemdef = {
|
itemdef = {
|
||||||
description = lumpdescription,
|
description = lumpdescription,
|
||||||
inventory_image = "pedology_lump_inv_"..basename.."_"..tostring(w)..".png",
|
inventory_image = "pedology_lump_inv_"..basename.."_"..tostring(w)..".png",
|
||||||
wield_image = "pedology_lump_"..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
|
end
|
||||||
if(nestedgroups) then
|
if(nestedgroups) then
|
||||||
groups = additional_groups[w]
|
groups = additional_groups[w]
|
||||||
|
Loading…
Reference in New Issue
Block a user