mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 23:03:45 +01:00
Fix bad item name override in mcl_wip
This commit is contained in:
parent
916627c6b6
commit
4bf7649027
@ -37,6 +37,9 @@ for i=1,#wip_items do
|
|||||||
end
|
end
|
||||||
local new_description = def.description
|
local new_description = def.description
|
||||||
local new_groups = table.copy(def.groups)
|
local new_groups = table.copy(def.groups)
|
||||||
|
if new_description == "" then
|
||||||
|
new_description = wip_items[i]
|
||||||
|
end
|
||||||
new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)")
|
new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)")
|
||||||
new_groups.not_in_craft_guide = 1
|
new_groups.not_in_craft_guide = 1
|
||||||
minetest.override_item(wip_items[i], { description = new_description, groups = new_groups })
|
minetest.override_item(wip_items[i], { description = new_description, groups = new_groups })
|
||||||
|
Loading…
Reference in New Issue
Block a user