Change lump itemstrings

… to fix a bug with the turf cuttings as fuels
This commit is contained in:
Wuzzy 2014-06-19 01:49:33 +02:00
parent 4d4c28a269
commit ef825e4a27

View File

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