1
0
Fork 0

Merge branch 'master' into useless_textures_cleanup

water_footstep
FossFanatic 2022-12-24 12:31:56 +00:00
commit 770dd0ec47
2 changed files with 1 additions and 6 deletions

View File

@ -699,6 +699,7 @@ minetest.register_on_joinplayer(function(player)
players[name].start_i = 0 players[name].start_i = 0
end end
init(player) init(player)
-- Setup initial creative inventory to the "nix" page.
mcl_inventory.set_creative_formspec(player, 0, 1, nil, false, "nix", "") mcl_inventory.set_creative_formspec(player, 0, 1, nil, false, "nix", "")
end) end)

View File

@ -169,12 +169,6 @@ minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_image("mcl_inventory_hotbar.png") player:hud_set_hotbar_image("mcl_inventory_hotbar.png")
player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png") player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png")
local old_update_player = mcl_armor.update_player
function mcl_armor.update_player(player, info)
old_update_player(player, info)
set_inventory(player, true)
end
-- In Creative Mode, the initial inventory setup is handled in creative.lua -- In Creative Mode, the initial inventory setup is handled in creative.lua
if not minetest.is_creative_enabled(player:get_player_name()) then if not minetest.is_creative_enabled(player:get_player_name()) then
set_inventory(player) set_inventory(player)