Remove Whitespaces

This commit is contained in:
A.C.M 2019-07-21 13:47:11 +02:00
parent 5658011d76
commit ee06f4c468
3 changed files with 39 additions and 20 deletions

18
.luacheckrc Normal file

@ -0,0 +1,18 @@
unused_args = false
allow_defined_top = true
globals = {
"minetest","mesecons_stealthnode","mesecons_random"
}
read_globals = {
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Builtin
"vector", "ItemStack",
"dump", "DIR_DELIM", "VoxelArea", "Settings",
-- MTG
"default"
}

@ -14,19 +14,20 @@
function stealthnode.register_stealthnode(modname, node) function stealthnode.register_stealthnode(modname, node)
local tile = "" local tile
if minetest.registered_nodes[modname .. ":" .. node] == nil then if minetest.registered_nodes[modname .. ":" .. node] == nil then
print("[MOD] " .. minetest.get_current_modname() .. ": " .. modname .. ":" .. node .. " not found to register a stealthnode.") print("[MOD] " .. minetest.get_current_modname() .. ": "
minetest.log("warning", "[MOD] " .. minetest.get_current_modname() .. ": " .. modname .. ":" .. node .. " not found to register a stealthnode.") .. modname .. ":" .. node .. " not found to register a stealthnode.")
minetest.log("warning", "[MOD] " .. minetest.get_current_modname() .. ": "
.. modname .. ":" .. node .. " not found to register a stealthnode.")
return return
else else
tile = minetest.registered_nodes[modname .. ":" .. node].tiles tile = minetest.registered_nodes[modname .. ":" .. node].tiles
end end
local newgroup = {} local newgroup = stealthnode.table_clone(minetest.registered_nodes[modname .. ":" .. node].groups)
newgroup = stealthnode.table_clone(minetest.registered_nodes[modname .. ":" .. node].groups)
minetest.register_node(":mesecons_stealthnode:" .. modname .. "_" .. node, { minetest.register_node(":mesecons_stealthnode:" .. modname .. "_" .. node, {
description="Stealthnode " .. minetest.registered_nodes[modname .. ":" .. node].description, description="Stealthnode " .. minetest.registered_nodes[modname .. ":" .. node].description,