(client) chore:UI

This commit is contained in:
m0_75251201
2025-08-27 14:45:12 +08:00
parent 0c99e2beee
commit 63efa89ac1
10 changed files with 126 additions and 60 deletions

View File

@ -158,7 +158,8 @@ namespace Entity
}
public InventorySlot GetSlot(int i)
{
i = Mathf.Clamp(i, 0, Capacity - 1);
if (i < 0 || i >= OccupiedSlotsCount)
return null;
return _slots[i];
}