Fixed an issue where Windows-style newlines at the end of pack.txt would cause display issues
This commit is contained in:
parent
a7d394ef19
commit
1e0827a93e
@ -58,7 +58,7 @@ namespace TrueCraft.Core
|
|||||||
using (var stream = entry.OpenReader())
|
using (var stream = entry.OpenReader())
|
||||||
{
|
{
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
description = reader.ReadToEnd();
|
description = reader.ReadToEnd().TrimEnd('\n', '\r', ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (entry.FileName == "pack.png")
|
else if (entry.FileName == "pack.png")
|
||||||
|
Reference in New Issue
Block a user