diff --git a/.luacheckrc b/.luacheckrc index 8d40258..771e05f 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -16,5 +16,5 @@ read_globals = { "dump", "DIR_DELIM", "VoxelArea", "Settings", --mod produced - "fl_dyes", "fl_hand", "fl_tools" + "fl_dyes", "fl_hand", "fl_tools", "mobkit", } \ No newline at end of file diff --git a/mods/fl_player/init.lua b/mods/fl_player/init.lua index 1f3d0db..a14dc71 100644 --- a/mods/fl_player/init.lua +++ b/mods/fl_player/init.lua @@ -40,7 +40,10 @@ minetest.register_globalstep(function(dtime) for _, player in pairs(minetest.get_connected_players()) do local pcontrols = player:get_player_control() - player:set_bone_position("Head", vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0)) + player:set_bone_position( + "Head", + vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0) + ) if pcontrols.up or pcontrols.down or pcontrols.left or pcontrols.right then if pcontrols.LMB or pcontrols.RMB then @@ -62,7 +65,9 @@ minetest.register_chatcommand("set_anim", { params = "", description = "set player animation", func = function(name, param) - if not animations[param] then return minetest.chat_send_player(name, "'" .. param .. "' is not a valid animation") end + if not animations[param] then + return minetest.chat_send_player(name, "'" .. param .. "' is not a valid animation!") + end minetest.get_player_by_name(name):set_animation(animations[param], 30) minetest.chat_send_player(name, "animation " .. param .. " set") diff --git a/mods/fl_trees/saplings.lua b/mods/fl_trees/saplings.lua index 8c35fa7..3ba63dc 100644 --- a/mods/fl_trees/saplings.lua +++ b/mods/fl_trees/saplings.lua @@ -10,7 +10,13 @@ minetest.register_node("fl_trees:aspen_sapling", { groups = {oddly_breakable_by_hand = 3}, on_timer = function(pos) minetest.remove_node(pos) - minetest.place_schematic({x=pos.x-2, y=pos.y, z=pos.z-2}, modpath .. "/schems/aspen_tree_" .. math.random(5) .. ".mts", 0, nil, false) + minetest.place_schematic( + {x=pos.x-2, y=pos.y, z=pos.z-2}, + modpath .. "/schems/aspen_tree_" .. math.random(5) .. ".mts", + 0, + nil, + false + ) end, on_costruct = function(pos) minetest.remove_node(pos) @@ -35,7 +41,13 @@ minetest.register_node("fl_trees:baobab_sapling", { groups = {oddly_breakable_by_hand = 3}, on_timer = function(pos) minetest.remove_node(pos) - minetest.place_schematic({x=pos.x-3, y=pos.y, z=pos.z-3}, modpath .. "/schems/baobab_tree_" .. math.random(5) .. ".mts", 0, nil, false) + minetest.place_schematic( + {x=pos.x-3, y=pos.y, z=pos.z-3}, + modpath .. "/schems/baobab_tree_" .. math.random(5) .. ".mts", + 0, + nil, + false + ) end, on_costruct = function(pos) minetest.remove_node(pos)