From d9d5b7b5c58a7b044b78ee7993f0a15e5b79f689 Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Thu, 03 Apr 2025 18:28:15 +0000
Subject: [PATCH] #42 started performance fixes for chunk generation

---
 Assets/Scripts/Inventory/ItemUIScript.cs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Assets/Scripts/Inventory/ItemUIScript.cs b/Assets/Scripts/Inventory/ItemUIScript.cs
index 4f9f49b..a4ad058 100644
--- a/Assets/Scripts/Inventory/ItemUIScript.cs
+++ b/Assets/Scripts/Inventory/ItemUIScript.cs
@@ -42,10 +42,8 @@
                         description += $"\n<b>Generation</b>";
                         foreach (var variant in variants)
                         {
-                            if (variant.maxHeight > 0 || variant.minHeight > 0)
-                            {
-                                description += $"\nSpawns between Y: {variant.minHeight} - {variant.maxHeight}. Amount: {variant.dropRange}";
-                            }
+                            description += $"\nLocation\tY: {variant.maxHeight} to {variant.minHeight}";
+                            description += $"\n\tAmount: {variant.dropRange.ToRangeString()}";
                         }
                     }
                     gameObject.transform.Find("ItemTextDescription").GetComponent<TextMeshProUGUI>().text = description;

--
Gitblit v1.9.3