]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Make GitHub Actions Happy try 1
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 12 Dec 2020 12:58:46 +0000 (13:58 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 12 Dec 2020 12:58:46 +0000 (13:58 +0100)
builtin/client/chatcommands.lua
builtin/client/cheats.lua
builtin/client/death_formspec.lua
builtin/client/register.lua
builtin/client/util.lua
builtin/common/misc_helpers.lua
builtin/mainmenu/tab_content.lua
src/client/game.cpp
src/client/game.h
src/script/cpp_api/s_client.h

index fc6ed5b2bfdecf008c51c188a2b03bc571f19dad..0da3dab1be0a7fa1355c3054e4d45ef83ac9f7b9 100644 (file)
@@ -180,5 +180,5 @@ core.register_chatcommand("setpitch", {
        end
 })
 
-core.register_list_command("xray", "Configure X-Ray", "xray_nodes") 
-core.register_list_command("search", "Configure NodeESP", "node_esp_nodes") 
+core.register_list_command("xray", "Configure X-Ray", "xray_nodes")
+core.register_list_command("search", "Configure NodeESP", "node_esp_nodes")
index 42f7abbb3899d05884c64a3aa972c7f94be0a8cc..1abc2c8ef7c476ce3d44eca16f9e23c52266c140 100644 (file)
@@ -55,4 +55,4 @@ core.cheats = {
 function core.register_cheat(cheatname, category, func)
        core.cheats[category] = core.cheats[category] or {}
        core.cheats[category][cheatname] = func
-end 
+end
index 499ed47f3ca60ca3b5f45a80d40fae2339b2d04f..7b8530440e80995e8ad78aa63db5faa52aacddbe 100644 (file)
@@ -36,4 +36,3 @@ core.register_chatcommand("respawn", {
                end
        end
 })
index 669ef134e0f3631157f647b509a1c21040235a5e..de5d899099a32a4ae1ebfb597b6ec23140e34839 100644 (file)
@@ -60,7 +60,7 @@ function core.override_item(name, redefinition)
        end
        local nodedef = core.get_node_def(name)
        table.combine(itemdef, nodedef)
-       
+
        for k, v in pairs(redefinition) do
                rawset(itemdef, k, v)
        end
index 30f983af3def0061c1aa4d5ca23bf35dc7a749f3..e85727436a42900ee53f12516e663e91becf50f3 100644 (file)
@@ -13,13 +13,13 @@ function core.parse_pos(param)
                return true, vector.round(p)
        end
        return false, "Invalid position (" .. param .. ")"
-end 
+end
 
 function core.parse_relative_pos(param)
        local success, pos = core.parse_pos(param:gsub("~", "0"))
        if success then pos = vector.round(vector.add(core.localplayer:get_pos(), pos)) end
        return success, pos
-end 
+end
 
 function core.find_item(item, mini, maxi)
        for index, stack in ipairs(core.get_inventory("current_player").main) do
index 64d67bc72672f324f71834cde33be84ea30f3821..db94e7073ced454c3b6b4e9a879b45273c39d5f8 100644 (file)
@@ -516,6 +516,7 @@ function table.shuffle(t, from, to, random)
        end
 end
 
+
 function table.combine(t, other)
        other = other or {}
        for k, v in pairs(other) do
@@ -603,7 +604,7 @@ local function rgb_to_hex(rgb)
                while(value > 0)do
                        local index = math.fmod(value, 16) + 1
                        value = math.floor(value / 16)
-                       hex = string.sub('0123456789ABCDEF', index, index) .. hex                       
+                       hex = string.sub('0123456789ABCDEF', index, index) .. hex
                end
 
                if(string.len(hex) == 0)then
@@ -624,12 +625,12 @@ local function color_from_hue(hue)
        local c = 255
        local x = (1 - math.abs(h%2 - 1)) * 255
 
-       local i = math.floor(h);
+       local i = math.floor(h);
        if (i == 0) then
                return rgb_to_hex({c, x, 0})
-       elseif (i == 1) then 
+       elseif (i == 1) then 
                return rgb_to_hex({x, c, 0})
-       elseif (i == 2) then 
+       elseif (i == 2) then 
                return rgb_to_hex({0, c, x})
        elseif (i == 3) then
                return rgb_to_hex({0, x, c});
@@ -649,9 +650,9 @@ function core.rainbow(input)
                if char:match("%s") then
                        output = output .. char
                else
-               output = output  .. core.get_color_escape_sequence(color_from_hue(hue)) .. char 
+                       output = output  .. core.get_color_escape_sequence(color_from_hue(hue)) .. char 
                end
-        hue = hue + step
+               hue = hue + step
        end
        return output
 end
index 62321059731f8b22f04fe33b5b98883dc532457a..a76fee864b93ac3277c76916209941f7b076f5b8 100644 (file)
@@ -50,12 +50,12 @@ local function get_formspec(tabview, name, tabdata)
 
                packages = filterlist.create(get_data, pkgmgr.compare_package,
                                is_equal, nil, {})
-                               
+
                local filename = core.get_clientmodpath() .. DIR_DELIM .. "mods.conf"
 
                local conffile = Settings(filename)
                local mods = conffile:to_table()
-       
+
                for i = 1, #packages_raw do
                        local mod = packages_raw[i]
                        if mod.is_clientside and not mod.is_modpack then
@@ -71,7 +71,7 @@ local function get_formspec(tabview, name, tabdata)
                                mods["load_mod_" .. mod.name] = nil
                        end
                end
-               
+
                -- Remove mods that are not present anymore
                for key in pairs(mods) do
                        if key:sub(1, 9) == "load_mod_" then
@@ -211,24 +211,26 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
                local event = core.explode_table_event(fields["pkglist"])
                tabdata.selected_pkg = event.row
                local mod = packages:get_list()[tabdata.selected_pkg]
-               
+
                if event.type == "DCL" and mod.is_clientside then
                        pkgmgr.enable_mod({data = {list = packages, selected_mod = tabdata.selected_pkg}})
                        packages = nil
                end
                return true
        end
-       
+
        if fields.btn_mod_mgr_mp_enable ~= nil or
                        fields.btn_mod_mgr_mp_disable ~= nil then
-               pkgmgr.enable_mod({data = {list = packages, selected_mod = tabdata.selected_pkg}}, fields.btn_mod_mgr_mp_enable ~= nil)
+               pkgmgr.enable_mod({data = {list = packages, selected_mod = tabdata.selected_pkg}},
+                       fields.btn_mod_mgr_mp_enable ~= nil)
                packages = nil
                return true
        end
-       
+
        if fields.btn_mod_mgr_enable_mod ~= nil or
                        fields.btn_mod_mgr_disable_mod ~= nil then
-               pkgmgr.enable_mod({data = {list = packages, selected_mod = tabdata.selected_pkg}}, fields.btn_mod_mgr_enable_mod ~= nil)
+               pkgmgr.enable_mod({data = {list = packages, selected_mod = tabdata.selected_pkg}},
+                       fields.btn_mod_mgr_enable_mod ~= nil)
                packages = nil
                return true
        end
index 69feeef9712919c63f2ce78ee8db9f84e2c6123d..5893e8ac9f753c4cd1ec1d7088af5bdb2adcd2a4 100644 (file)
@@ -3373,6 +3373,26 @@ void Game::readSettings()
        m_does_lost_focus_pause_game = g_settings->getBool("pause_on_lost_focus");
 }
 
+bool Game::isKeyDown(GameKeyType k)
+{
+       return input->isKeyDown(k);
+}
+
+bool Game::wasKeyDown(GameKeyType k)
+{
+       return input->wasKeyDown(k);
+}
+
+bool Game::wasKeyPressed(GameKeyType k)
+{
+       return input->wasKeyPressed(k);
+}
+
+bool Game::wasKeyReleased(GameKeyType k)
+{
+       return input->wasKeyReleased(k);
+}
+
 /****************************************************************************/
 /****************************************************************************
  Shutdown / cleanup
index 26117ab868eb7a29e9bcdf9228b8caf08b32d4f2..3e80b15e7bb21a3e36bc384c15649e5b05a6483b 100644 (file)
@@ -792,22 +792,10 @@ class Game {
        static void updateAllMapBlocksCallback(const std::string &setting_name, void *data);
        void readSettings();
 
-       inline bool isKeyDown(GameKeyType k)
-       {
-               return input->isKeyDown(k);
-       }
-       inline bool wasKeyDown(GameKeyType k)
-       {
-               return input->wasKeyDown(k);
-       }
-       inline bool wasKeyPressed(GameKeyType k)
-       {
-               return input->wasKeyPressed(k);
-       }
-       inline bool wasKeyReleased(GameKeyType k)
-       {
-               return input->wasKeyReleased(k);
-       }
+       bool isKeyDown(GameKeyType k);
+       bool wasKeyDown(GameKeyType k);
+       bool wasKeyPressed(GameKeyType k);
+       bool wasKeyReleased(GameKeyType k);
 
 #ifdef __ANDROID__
        void handleAndroidChatInput();
index ff1c473aec55ae72975066918eda58c0d40f377c..26fa7abea4b29ff45c638ce01d7302c9d4ce0ad3 100644 (file)
@@ -58,7 +58,9 @@ class ScriptApiClient : virtual public ScriptApiBase
        bool on_punchnode(v3s16 p, MapNode node);
        bool on_placenode(const PointedThing &pointed, const ItemDefinition &item);
        bool on_item_use(const ItemStack &item, const PointedThing &pointed);
-       bool on_recieve_physics_override(float override_speed, float override_jump, float override_gravity, bool sneak, bool sneak_glitch, bool new_move);
+       bool on_recieve_physics_override(float override_speed, float override_jump,
+                       float override_gravity, bool sneak, bool sneak_glitch,
+                       bool new_move);
        bool on_play_sound(SimpleSoundSpec spec);
        bool on_spawn_particle(struct ParticleParameters param);