Fix invisible scrollbar on first creative inv open
This commit is contained in:
parent
7389ed0e25
commit
d5814195d8
2 changed files with 6 additions and 1 deletions
|
@ -168,7 +168,10 @@ minetest.register_on_joinplayer(function(player)
|
|||
armor:update_inventory(player)
|
||||
end
|
||||
|
||||
set_inventory(player)
|
||||
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
||||
if not minetest.setting_get("creative_mode") then
|
||||
set_inventory(player)
|
||||
end
|
||||
|
||||
--[[ Make sure the crafting grid is empty. Why? Because the player might have
|
||||
items remaining in the crafting grid from the previous join; this is likely
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue