From bef204f5480af852deabd4d81fef9baec9dabed6 Mon Sep 17 00:00:00 2001 From: Johannes Fritz Date: Mon, 27 Mar 2023 12:09:13 -0500 Subject: [PATCH] Remove mcl_player_init --- mods/PLAYER/mcl_meshhand/init.lua | 4 ++++ mods/PLAYER/mcl_player_init/init.lua | 4 ---- mods/PLAYER/mcl_player_init/mod.conf | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 mods/PLAYER/mcl_player_init/init.lua delete mode 100644 mods/PLAYER/mcl_player_init/mod.conf diff --git a/mods/PLAYER/mcl_meshhand/init.lua b/mods/PLAYER/mcl_meshhand/init.lua index 864a7c20b..a28efd502 100644 --- a/mods/PLAYER/mcl_meshhand/init.lua +++ b/mods/PLAYER/mcl_meshhand/init.lua @@ -91,6 +91,10 @@ else minetest.register_on_joinplayer(mcl_meshhand.update_player) end +minetest.register_on_joinplayer(function(player) + player:get_inventory():set_size("hand", 1) +end) + -- This is needed to deal damage when punching mobs -- with random items in hand in survival mode minetest.override_item("", { diff --git a/mods/PLAYER/mcl_player_init/init.lua b/mods/PLAYER/mcl_player_init/init.lua deleted file mode 100644 index 52967a441..000000000 --- a/mods/PLAYER/mcl_player_init/init.lua +++ /dev/null @@ -1,4 +0,0 @@ -minetest.register_on_joinplayer(function(player) - -- Settable hand - player:get_inventory():set_size("hand", 1) -end) diff --git a/mods/PLAYER/mcl_player_init/mod.conf b/mods/PLAYER/mcl_player_init/mod.conf deleted file mode 100644 index d7a86c438..000000000 --- a/mods/PLAYER/mcl_player_init/mod.conf +++ /dev/null @@ -1,3 +0,0 @@ -name = mcl_player_init -author = Wuzzy -description = Initialize player gameplay stuff that are neither model nor HUD-related