mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-04 13:18:36 +00:00
Improved multiline property import
This commit is contained in:
@@ -1865,14 +1865,17 @@ namespace PckStudio
|
||||
{
|
||||
foreach (var line in input.TextOutput)
|
||||
{
|
||||
file.properties.Add((line.Substring(0, line.IndexOf(' ')), line.Substring(line.IndexOf(' ') + 1)));
|
||||
int idx = line.IndexOf(' ');
|
||||
if (idx == -1 || line.Length - 1 == idx)
|
||||
continue;
|
||||
file.properties.Add((line.Substring(0, idx), line.Substring(idx + 1)));
|
||||
}
|
||||
ReloadMetaTreeView();
|
||||
saved = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void correctSkinDecimalsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user