Fix whitespace errors to silence luacheck.
authorAuke Kok <sofar@foo-projects.org>
Sun, 20 Nov 2016 03:24:37 +0000 (19:24 -0800)
committerAuke Kok <sofar+github@foo-projects.org>
Sun, 20 Nov 2016 03:39:51 +0000 (19:39 -0800)
Currently all minetest_game PR's are failing travis since the
upstream luacheck now also warns about whitespace issues, and
there are a few of those in the code. This fixes all of them
so we can yet again rely on luacheck.

mods/beds/beds.lua
mods/beds/functions.lua
mods/default/furnace.lua
mods/default/player.lua
mods/doors/init.lua
mods/farming/nodes.lua
mods/sethome/init.lua

index b41992c3cf7b19b9e34bf78797e0a15b057c7236..bb2fd5d3915e946ebe4eaa27cd5f958f4dd58787 100644 (file)
@@ -66,7 +66,7 @@ beds.register_bed("beds:bed", {
                },
                top = {
                        "beds_bed_top_top.png^[transformR90",
-                       "default_wood.png", 
+                       "default_wood.png",
                        "beds_bed_side_top_r.png",
                        "beds_bed_side_top_r.png^[transformfx",
                        "beds_bed_side_top.png",
index b1c2c977fb159e502355e70db307e701cb0e44ef..896844e5a480cda772a4188a994744b3e6a0c3a2 100644 (file)
@@ -174,7 +174,7 @@ end
 
 -- Callbacks
 -- Only register respawn callback if respawn enabled
-if enable_respawn then 
+if enable_respawn then
        -- respawn player at bed if enabled and valid position is found
        minetest.register_on_respawnplayer(function(player)
                local name = player:get_player_name()
index cd36f522280355bbdd4d013c72f9f238edc3df9f..022024c4709cd497a8d5863fee7505fc85a279e8 100644 (file)
@@ -4,7 +4,7 @@
 --
 
 local function active_formspec(fuel_percent, item_percent)
-       local formspec = 
+       local formspec =
                "size[8,8.5]"..
                default.gui_bg..
                default.gui_bg_img..
index 8fb0aca8933c76dd1aabe2b541a28a491598b7d0..fd7341f4d5e54e6d59fe7045a58502e96d234461 100644 (file)
@@ -94,7 +94,7 @@ minetest.register_on_joinplayer(function(player)
        default.player_attached[player:get_player_name()] = false
        default.player_set_model(player, "character.b3d")
        player:set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, 30)
-       
+
        -- set GUI
        if not minetest.setting_getbool("creative_mode") then
                player:set_inventory_formspec(default.gui_survival_form)
index 01a549b74afaf1cd8c9f455c27220deb42510138..a30120540d347b3ab5a14b257909a2ce24e8c361 100644 (file)
@@ -519,7 +519,7 @@ function doors.register_trapdoor(name, def)
        if not name:find(":") then
                name = "doors:" .. name
        end
-       
+
        local name_closed = name
        local name_opened = name.."_open"
 
index c75e1e502e7d5bf9f0ccd90f51187cb4f7e83db7..09ad36f55491a84b2ebf471b6010d7c177283e6e 100644 (file)
@@ -111,7 +111,7 @@ minetest.register_abm({
                end
                local nn_def = minetest.registered_nodes[nn.name] or nil
                pos.y = pos.y - 1
-               
+
                if nn_def and nn_def.walkable and minetest.get_item_group(nn.name, "plant") == 0 then
                        minetest.set_node(pos, {name = base})
                        return
@@ -133,7 +133,7 @@ minetest.register_abm({
                                        if minetest.get_item_group(nn.name, "plant") == 0 and minetest.get_item_group(nn.name, "seed") == 0 then
                                                minetest.set_node(pos, {name = base})
                                        end
-                                       
+
                                -- if its wet turn it back into dry soil
                                elseif wet_lvl == 1 then
                                        minetest.set_node(pos, {name = dry})
@@ -144,7 +144,7 @@ minetest.register_abm({
 })
 
 
-for i = 1, 5 do                
+for i = 1, 5 do
        minetest.override_item("default:grass_"..i, {drop = {
                max_items = 1,
                items = {
@@ -153,7 +153,7 @@ for i = 1, 5 do
                }
        }})
 end
-       
+
 minetest.override_item("default:junglegrass", {drop = {
        max_items = 1,
        items = {
index dc431bc732c515f3ce2b695df273ecd6f3b924ec..e0fc453d4edc1a78a4ee2ed1ac33641e9e7ba79e 100644 (file)
@@ -43,9 +43,9 @@ end
 sethome.get = function(name)
        local pos = homepos[name]
        if pos then
-               return vector.new(pos)
+               return vector.new(pos)
        else
-               return nil
+               return nil
        end
 end