Skip to content

Commit

Permalink
when using legacy inventory in a non mtg game reset to no texture rat…
Browse files Browse the repository at this point in the history
…her than a missing texture
  • Loading branch information
wsor4035 committed Jul 4, 2024
1 parent a720a42 commit 0f1fb11
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 0f1fb11

Please sign in to comment.