Fix bug issues
This commit is contained in:
parent
e90d1e2a57
commit
a13965f477
@ -142,7 +142,10 @@ for name, def in pairs(minetest.registered_tools) do
|
|||||||
if(specialties.skills[skill].tool ~= "") then
|
if(specialties.skills[skill].tool ~= "") then
|
||||||
if(name:find(specialties.skills[skill].tool) ~= nil and special ~= {}) then
|
if(name:find(specialties.skills[skill].tool) ~= nil and special ~= {}) then
|
||||||
local toolname = "specialties"..name:sub(colonpos).."_"..special.name
|
local toolname = "specialties"..name:sub(colonpos).."_"..special.name
|
||||||
local newdef = def
|
local newdef = {}
|
||||||
|
for k,v in pairs(def) do
|
||||||
|
newdef[k] = v
|
||||||
|
end
|
||||||
newdef.description = def.description.." "..special.description
|
newdef.description = def.description.." "..special.description
|
||||||
newdef.inventory_image = def.inventory_image.."^specialties_"..special.name..".png"
|
newdef.inventory_image = def.inventory_image.."^specialties_"..special.name..".png"
|
||||||
newdef.wield_image = def.inventory_image.."^specialties_"..special.name..".png"
|
newdef.wield_image = def.inventory_image.."^specialties_"..special.name..".png"
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 272 B |
Binary file not shown.
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 311 B |
Loading…
Reference in New Issue
Block a user