Use typed shapes for inventory UI masks
This commit is contained in:
parent
ecc35c3ea6
commit
dc8c3353cf
4 changed files with 8 additions and 8 deletions
|
|
@ -883,7 +883,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
|
|||
if (typedItem != null && typedItem.ShapeCells.Count > 0)
|
||||
return ToShape(typedItem);
|
||||
|
||||
return GameManager.ItemManager.GetData(item).Shape;
|
||||
return new Shape(1, 1);
|
||||
}
|
||||
|
||||
private static Shape ToShape(AetheriaRuntimeCatalogItem item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue