From 08343b172ad5eca4f6c9e35ae041de9f07d23dd9 Mon Sep 17 00:00:00 2001 From: Louis <55180044+louisroyer@users.noreply.github.com> Date: Wed, 12 Aug 2020 21:15:32 +0200 Subject: [PATCH] Add toolranks in luacheckrc && update to toolranks 1.2 api --- .luacheckrc | 4 +++- technic_worldgen/crafts.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 96a7aac..8a34367 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -11,7 +11,7 @@ read_globals = { string = {fields = {"split", "trim"}}, table = {fields = {"copy", "getn"}}, - "intllib", "VoxelArea", + "VoxelArea", "default", "stairsplus", "PseudoRandom", "ItemStack", @@ -28,6 +28,8 @@ read_globals = { "protector", "isprotect", "homedecor_expect_infinite_stacks", + + "toolranks", } files["concrete/init.lua"].ignore = { "steel_ingot" } diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua index fdeaef7..c6e29cb 100644 --- a/technic_worldgen/crafts.lua +++ b/technic_worldgen/crafts.lua @@ -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