Skip to content

Commit

Permalink
Add toolranks in luacheckrc && update to toolranks 1.2 api
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Aug 12, 2020
1 parent ba1dcd9 commit f08bdf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},

"intllib", "VoxelArea",
"VoxelArea",
"default", "stairsplus",

"PseudoRandom", "ItemStack",
Expand All @@ -28,6 +28,8 @@ read_globals = {

"protector", "isprotect",
"homedecor_expect_infinite_stacks",

"toolranks",
}

files["concrete/init.lua"].ignore = { "steel_ingot" }
Expand Down
2 changes: 1 addition & 1 deletion technic_worldgen/crafts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ for _, v in ipairs(steel_to_iron) do
if minetest.get_modpath("toolranks") and item_def.original_description then
minetest.override_item(v.name, {
original_description = v.description,
description = toolranks.create_description(v.description, 0, 1)})
description = toolranks.create_description(v.description)})
else
minetest.override_item(v.name, { description = v.description })
end
Expand Down

0 comments on commit f08bdf5

Please sign in to comment.