From 0878430fe5cf0f79cb5789eccf098e309421ab9f Mon Sep 17 00:00:00 2001 From: Louis <55180044+louisroyer@users.noreply.github.com> Date: Wed, 12 Aug 2020 21:17:47 +0200 Subject: [PATCH] Fix luacheck syntax warnings --- technic/machines/register/recipes.lua | 2 -- technic_chests/common.lua | 3 --- technic_worldgen/nodes.lua | 2 +- wrench/init.lua | 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/technic/machines/register/recipes.lua b/technic/machines/register/recipes.lua index 97e22b6..921d1c8 100644 --- a/technic/machines/register/recipes.lua +++ b/technic/machines/register/recipes.lua @@ -1,5 +1,3 @@ -local S = minetest.get_translator("technic") - local have_ui = minetest.get_modpath("unified_inventory") technic.recipes = { cooking = { input_size = 1, output_size = 1 } } diff --git a/technic_chests/common.lua b/technic_chests/common.lua index a0fdbab..0f988b0 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -1,6 +1,3 @@ --- Translation support -local S = minetest.get_translator("technic_chests") - technic.chests.groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1} technic.chests.groups_noinv = {snappy=2, choppy=2, oddly_breakable_by_hand=2, diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index a4496b8..aab7ce8 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -144,7 +144,7 @@ minetest.register_craft({ minetest.register_alias("technic:diamond_block", "default:diamondblock") minetest.register_alias("technic:diamond", "default:diamond") minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond") - + local steel_to_wrought_iron = { {name="stairs:stair_outer_steelblock", description=S("Outer Wrought Iron Block Stair")}, {name="stairs:stair_inner_steelblock", description=S("Inner Wrought Iron Block Stair")}, diff --git a/wrench/init.lua b/wrench/init.lua index 71475ef..d58b964 100644 --- a/wrench/init.lua +++ b/wrench/init.lua @@ -20,7 +20,7 @@ dofile(modpath.."/support.lua") dofile(modpath.."/technic.lua") -- Translation support -local S = minetest.get_translator("technic_wrench") +local S = minetest.get_translator("technic_wrench") local function get_meta_type(name, metaname) local def = wrench.registered_nodes[name]