Fixed SkinBOX not parsing if under 10 arguments

This commit is contained in:
MayNL
2026-03-10 09:48:13 -04:00
parent 354ffb8ace
commit 8702f0b244
2 changed files with 4 additions and 2 deletions

View File

@@ -118,7 +118,9 @@ namespace PckStudio.Core.Skin
Vector3 size = TryGetVector3(arguments, 4);
Vector2 uv = TryGetVector2(arguments, 7);
int.TryParse(arguments[9], out int armorMaskFlags);
int armorMaskFlags = default;
if (arguments.IndexInRange(9))
int.TryParse(arguments[9], out armorMaskFlags);
bool mirror = arguments.IndexInRange(10) && arguments[10] == "1";
float scale = default;
if (arguments.IndexInRange(11))

2
Vendor/OMI-Lib vendored