From 0d2ec6b3f31f3ed4a247c0d6d26bc2f1eb5e3ec2 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Tue, 2 Aug 2022 21:26:25 +0200 Subject: [PATCH] Remove textBoxFailCheck from generateModel --- .../Forms/Skins-And-Textures/generateModel.cs | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/MinecraftUSkinEditor/Forms/Skins-And-Textures/generateModel.cs b/MinecraftUSkinEditor/Forms/Skins-And-Textures/generateModel.cs index f1f9924d..6dfb3289 100644 --- a/MinecraftUSkinEditor/Forms/Skins-And-Textures/generateModel.cs +++ b/MinecraftUSkinEditor/Forms/Skins-And-Textures/generateModel.cs @@ -138,7 +138,7 @@ namespace PckStudio public float Length; public int U, V; - public ModelPart(string @type, float x, float y, float z, float width, float height, float length, int u, int v) + public ModelPart(string type, float x, float y, float z, float width, float height, float length, int u, int v) { Type = type; X = x; @@ -212,6 +212,18 @@ namespace PckStudio string name = Format[0]; if (ValidModelBoxTypes.Contains(name)) { + // %10ls = name + // %f + // %f + // %f + // %f + // %f + // %f + // %f + // %f + // %d + // %d + // %f try { float x = float.Parse(Format[1]); @@ -930,18 +942,6 @@ namespace PckStudio //render(); } - private void textBoxFailCheck(TextBox textBox) - { - try - { - textBox.Text = double.Parse(textBox.Text).ToString(); - } - catch (Exception ex) - { - textBox.Text = "0"; - } - } - private void SizeXUpDown_ValueChanged(object sender, EventArgs e) { if (listViewBoxes.SelectedItems.Count != 0 &&