Skip to content

Commit

Permalink
Fix luacheck syntax warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Aug 12, 2020
1 parent f08bdf5 commit 059caac
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion technic/machines/register/machine_base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function technic.register_base_machine(data)
local machine_desc = data.machine_desc
local tier = data.tier
local ltier = string.lower(tier)

data.modname = data.modname or minetest.get_current_modname()

local groups = {cracky = 2, technic_machine = 1, ["technic_"..ltier] = 1}
Expand Down
2 changes: 0 additions & 2 deletions technic/machines/register/recipes.lua
Original file line number Diff line number Diff line change
@@ -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 } }
Expand Down
3 changes: 0 additions & 3 deletions technic_chests/common.lua
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion technic_worldgen/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")},
Expand Down
2 changes: 1 addition & 1 deletion wrench/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 059caac

Please sign in to comment.