mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 03:06:15 +00:00
Fixed Mirror and Armor checkboxes in Box Editor saving incorrectly
This commit is contained in:
@@ -33,8 +33,8 @@ namespace PckStudio.Forms.Utilities.Skins
|
||||
Size.Z = float.Parse(arguments[6]);
|
||||
uvX = float.Parse(arguments[7]);
|
||||
uvY = float.Parse(arguments[8]);
|
||||
HideWithArmor = arguments[9] == "1";
|
||||
Mirror = arguments[10] == "1";
|
||||
HideWithArmor = Convert.ToBoolean(Int32.Parse(arguments[9]));
|
||||
Mirror = Convert.ToBoolean(Int32.Parse(arguments[10]));
|
||||
Inflation = float.Parse(arguments[11]);
|
||||
}
|
||||
catch (IndexOutOfRangeException)
|
||||
@@ -84,7 +84,8 @@ namespace PckStudio.Forms.Utilities.Skins
|
||||
$"{PosXUpDown.Value} {PosYUpDown.Value} {PosZUpDown.Value} " +
|
||||
$"{SizeXUpDown.Value} {SizeYUpDown.Value} {SizeZUpDown.Value} " +
|
||||
$"{uvXUpDown.Value} {uvYUpDown.Value} " +
|
||||
$"{(mirrorCheckBox.Checked ? "1 " : "0 ")} {(mirrorCheckBox.Checked ? "1 " : "0 ")} " +
|
||||
$"{Convert.ToInt32(armorCheckBox.Checked)} " +
|
||||
$"{Convert.ToInt32(mirrorCheckBox.Checked)} " +
|
||||
$"{inflationUpDown.Value}";
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
|
||||
Reference in New Issue
Block a user