mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-08 13:08:34 +00:00
Added global fix for localized decimal parsing
This commit is contained in:
@@ -176,12 +176,12 @@ namespace PckStudio
|
||||
// %f
|
||||
try
|
||||
{
|
||||
float x = float.Parse(Format[1], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float y = float.Parse(Format[2], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float z = float.Parse(Format[3], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float sizeX = float.Parse(Format[4], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float sizeY = float.Parse(Format[5], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float sizeZ = float.Parse(Format[6], System.Globalization.CultureInfo.InvariantCulture);
|
||||
float x = float.Parse(Format[1]);
|
||||
float y = float.Parse(Format[2]);
|
||||
float z = float.Parse(Format[3]);
|
||||
float sizeX = float.Parse(Format[4]);
|
||||
float sizeY = float.Parse(Format[5]);
|
||||
float sizeZ = float.Parse(Format[6]);
|
||||
int u = int.Parse(Format[7]);
|
||||
int v = int.Parse(Format[8]);
|
||||
modelParts.Add(new ModelPart(name, x, y, z, sizeX, sizeY, sizeZ, u, v));
|
||||
|
||||
@@ -20,6 +20,9 @@ namespace PckStudio
|
||||
#if DEBUG
|
||||
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
|
||||
#endif
|
||||
|
||||
System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
|
||||
|
||||
var f = new MainForm();
|
||||
if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck"))
|
||||
f.LoadFromPath(args[0]);
|
||||
|
||||
Reference in New Issue
Block a user