mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Merge pull request 'Remove mcl_player_init' (#3594) from player_init into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3594 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
deb393ae32
3 changed files with 4 additions and 7 deletions
|
@ -91,6 +91,10 @@ else
|
||||||
minetest.register_on_joinplayer(mcl_meshhand.update_player)
|
minetest.register_on_joinplayer(mcl_meshhand.update_player)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
player:get_inventory():set_size("hand", 1)
|
||||||
|
end)
|
||||||
|
|
||||||
-- This is needed to deal damage when punching mobs
|
-- This is needed to deal damage when punching mobs
|
||||||
-- with random items in hand in survival mode
|
-- with random items in hand in survival mode
|
||||||
minetest.override_item("", {
|
minetest.override_item("", {
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
-- Settable hand
|
|
||||||
player:get_inventory():set_size("hand", 1)
|
|
||||||
end)
|
|
|
@ -1,3 +0,0 @@
|
||||||
name = mcl_player_init
|
|
||||||
author = Wuzzy
|
|
||||||
description = Initialize player gameplay stuff that are neither model nor HUD-related
|
|
Loading…
Reference in a new issue