From 0f1fb11672ee8e855f4f4a9e6ad0b4b7db2c4d31 Mon Sep 17 00:00:00 2001
From: wsor4035 <24964441+wsor4035@users.noreply.github.com>
Date: Thu, 4 Jul 2024 14:03:00 -0400
Subject: [PATCH] when using legacy inventory in a non mtg game reset to no
 texture rather than a missing texture

---
 src/common.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common.lua b/src/common.lua
index 4cdc3f0..f7890ea 100644
--- a/src/common.lua
+++ b/src/common.lua
@@ -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