mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-04 14:20:30 +01:00
Add toolranks in luacheckrc && update to toolranks 1.2 api
This commit is contained in:
parent
a104c143be
commit
08343b172a
@ -11,7 +11,7 @@ read_globals = {
|
|||||||
string = {fields = {"split", "trim"}},
|
string = {fields = {"split", "trim"}},
|
||||||
table = {fields = {"copy", "getn"}},
|
table = {fields = {"copy", "getn"}},
|
||||||
|
|
||||||
"intllib", "VoxelArea",
|
"VoxelArea",
|
||||||
"default", "stairsplus",
|
"default", "stairsplus",
|
||||||
|
|
||||||
"PseudoRandom", "ItemStack",
|
"PseudoRandom", "ItemStack",
|
||||||
@ -28,6 +28,8 @@ read_globals = {
|
|||||||
|
|
||||||
"protector", "isprotect",
|
"protector", "isprotect",
|
||||||
"homedecor_expect_infinite_stacks",
|
"homedecor_expect_infinite_stacks",
|
||||||
|
|
||||||
|
"toolranks",
|
||||||
}
|
}
|
||||||
|
|
||||||
files["concrete/init.lua"].ignore = { "steel_ingot" }
|
files["concrete/init.lua"].ignore = { "steel_ingot" }
|
||||||
|
@ -161,7 +161,7 @@ for _, v in ipairs(steel_to_iron) do
|
|||||||
if minetest.get_modpath("toolranks") and item_def.original_description then
|
if minetest.get_modpath("toolranks") and item_def.original_description then
|
||||||
minetest.override_item(v.name, {
|
minetest.override_item(v.name, {
|
||||||
original_description = v.description,
|
original_description = v.description,
|
||||||
description = toolranks.create_description(v.description, 0, 1)})
|
description = toolranks.create_description(v.description)})
|
||||||
else
|
else
|
||||||
minetest.override_item(v.name, { description = v.description })
|
minetest.override_item(v.name, { description = v.description })
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user