ref luacheck whitespace warnings

This commit is contained in:
Zweihorn 2019-05-13 23:37:39 +02:00
parent 8c2d3f0b1f
commit e0bf848c57
31 changed files with 38 additions and 45 deletions

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
-- Fancy shaped bed
beds.register_bed("beds:fancy_bed", {

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
--
-- Helper functions
--

View File

@ -5,7 +5,6 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
bones = {}
@ -236,9 +235,7 @@ minetest.register_on_dieplayer(function(player)
minetest.log("action", player_name .. " dies at " .. pos_string ..
". Inventory dropped")
if bones_position_message then
minetest.chat_send_player(player_name,
S("@1 died at @2, and dropped their inventory.",
player_name, pos_string))
minetest.chat_send_player(player_name, S("@1 died at @2, and dropped their inventory.", player_name, pos_string))
end
return
end
@ -249,9 +246,7 @@ minetest.register_on_dieplayer(function(player)
minetest.log("action", player_name .. " dies at " .. pos_string ..
". Bones placed")
if bones_position_message then
minetest.chat_send_player(player_name,
S("@1 died at @2, and bones were placed.",
player_name, pos_string))
minetest.chat_send_player(player_name, S("@1 died at @2, and bones were placed.", player_name, pos_string))
end
local meta = minetest.get_meta(pos)

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
-- register butterflies
local butter_list = {
{"white", S("White")},

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local cart_entity = {
initial_properties = {

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
carts:register_rail("carts:rail", {
description = S("Rail"),
tiles = {

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
creative = {}

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local player_inventory = {}
local inventory_cache = {}

View File

@ -2,7 +2,7 @@ default.chest = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
function default.chest.get_chest_formspec(pos)
local spos = pos.x .. "," .. pos.y .. "," .. pos.z
local formspec =
@ -95,8 +95,7 @@ function default.chest.register_chest(name, d)
def.after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "")
meta:set_string("infotext", S("Locked Chest (owned by @1)",
meta:get_string("owner")))
meta:set_string("infotext", S("Locked Chest (owned by @1)", meta:get_string("owner")))
end
def.can_dig = function(pos,player)
local meta = minetest.get_meta(pos);

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
minetest.register_craftitem("default:stick", {
description = S("Stick"),
inventory_image = "default_stick.png",

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
--
-- Formspecs
@ -237,8 +237,7 @@ local function furnace_node_timer(pos, elapsed)
-- local infotext = "Furnace " .. active .. "\n(Item: " .. item_state ..
-- "; Fuel: " .. fuel_state .. ")"
local infotext = S("Furnace @1 \n(Item: @2; Fuel: @3)", active,
item_state, fuel_state)
local infotext = S("Furnace @1 \n(Item: @2; Fuel: @3)", active, item_state, fuel_state)
--
-- Set meta values

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
--[[ Node name convention:
@ -2514,8 +2514,7 @@ local function update_bookshelf(pos)
else
-- meta:set_string("infotext", "Bookshelf (" .. n_written ..
-- " written, " .. n_empty .. " empty books)")
meta:set_string("infotext", S("Bookshelf (@1 written, @2 empty books)",
n_written, n_empty))
meta:set_string("infotext", S("Bookshelf (@1 written, @2 empty books)", n_written, n_empty))
end
end

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
-- The hand
minetest.register_item(":", {
type = "none",

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local function on_flood(pos, oldnode, newnode)
minetest.add_item(pos, ItemStack("default:torch 1"))
-- Play flame-extinguish sound if liquid is not an 'igniter'

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local random = math.random
@ -569,9 +569,7 @@ function default.sapling_on_place(itemstack, placer, pointed_thing,
-- minetest.chat_send_player(player_name,
-- itemstack:get_definition().description .. " will intersect protection " ..
-- "on growth")
minetest.chat_send_player(player_name,
S("@1 will intersect protection on growth.",
itemstack:get_definition().description))
minetest.chat_send_player(player_name, S("@1 will intersect protection on growth.", itemstack:get_definition().description))
return itemstack
end

View File

@ -8,7 +8,7 @@ doors.registered_trapdoors = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
local function replace_old_owner_information(pos)
local meta = minetest.get_meta(pos)

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
farming.register_hoe(":farming:hoe_wood", {
description = S("Wooden Hoe"),
inventory_image = "farming_tool_woodhoe.png",

View File

@ -15,7 +15,7 @@ dofile(farming.path .. "/hoes.lua")
-- Load support for MT game translation.
local S = minetest.get_translator()
-- WHEAT

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
minetest.override_item("default:dirt", {
soil = {

View File

@ -6,7 +6,7 @@ fire = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
-- 'Enable fire' setting

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
minetest.register_node("fireflies:firefly", {
description = S("Firefly"),

View File

@ -10,7 +10,7 @@ flowers = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
-- Map Generation

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
minetest.register_chatcommand("killme", {
description = S("Kill yourself to respawn"),

View File

@ -7,7 +7,7 @@ map = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
-- Cache creative mode setting

View File

@ -4,7 +4,7 @@ screwdriver = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
screwdriver.ROTATE_FACE = 1
screwdriver.ROTATE_AXIS = 2

View File

@ -10,7 +10,7 @@ stairs = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
-- Register aliases for new pine node names

View File

@ -4,7 +4,7 @@ tnt = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
-- Default to enabled when in singleplayer
local enable_tnt = minetest.settings:get_bool("enable_tnt")

View File

@ -5,7 +5,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local vessels_shelf_formspec =
"size[8,7;]" ..

View File

@ -4,7 +4,7 @@ walls = {}
-- Load support for MT game translation.
local S = minetest.get_translator()
walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wall_sounds)
--make wall_texture_table paramenter backwards compatible for mods passing single texture

View File

@ -1,4 +1,7 @@
<<<<<<< HEAD
local dyes = dye.dyes
=======
>>>>>>> ref luacheck whitespace warnings
for i = 1, #dyes do
local name, desc = unpack(dyes[i])

View File

@ -2,7 +2,7 @@
-- Load support for MT game translation.
local S = minetest.get_translator()
local function is_pane(pos)
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0