fix(item_count): closes #122

This commit is contained in:
2025-09-06 01:37:28 +02:00
parent 1b14040025
commit ba3634b3cc

View File

@@ -51,7 +51,9 @@ func set_custom_data(data: Dictionary) -> void:
ESCItemCountManager.new().updateSprite(self)
func _get_inventory_texture_hovered() -> Texture2D:
if inventory_texture_hovered == null:
if custom_data.has("count"):
return inventory_texture
elif inventory_texture_hovered == null:
return _get_inventory_texture()
else:
return inventory_texture_hovered
return inventory_texture_hovered