Skip to content

Commit

Permalink
Legacy hotbar non default (#14)
Browse files Browse the repository at this point in the history
* when using legacy inventory in a non mtg game reset to no texture rather than a missing texture
  • Loading branch information
wsor4035 authored Jul 4, 2024
1 parent d5b5a14 commit fce1344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ local function update_inv_size(player, data)
player:hud_set_hotbar_itemcount(data.hotbar_len)

core.after(0, function()
player:hud_set_hotbar_image(data.legacy_inventory and "gui_hotbar.png" or "i3_hotbar.png")
player:hud_set_hotbar_image(data.legacy_inventory and (core.global_exists("default") and "gui_hotbar.png" or "") or "i3_hotbar.png")
end)
end

Expand Down

0 comments on commit fce1344

Please sign in to comment.