From cfac33a94f558b9b2a9367108f2f877bb7d0b21d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 6 Mar 2019 07:32:22 +0100 Subject: [PATCH] Fix settable hand --- mods/PLAYER/mcl_player_init/init.lua | 4 ++++ mods/PLAYER/mcl_player_init/mod.conf | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 mods/PLAYER/mcl_player_init/init.lua create mode 100644 mods/PLAYER/mcl_player_init/mod.conf diff --git a/mods/PLAYER/mcl_player_init/init.lua b/mods/PLAYER/mcl_player_init/init.lua new file mode 100644 index 0000000000..52967a4412 --- /dev/null +++ b/mods/PLAYER/mcl_player_init/init.lua @@ -0,0 +1,4 @@ +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 new file mode 100644 index 0000000000..8d559910ca --- /dev/null +++ b/mods/PLAYER/mcl_player_init/mod.conf @@ -0,0 +1,2 @@ +name = mcl_player_init +description = Initialize player gameplay stuff that are neither model nor HUD-related