Fixed an issue where Windows-style newlines at the end of pack.txt would cause display issues

This commit is contained in:
William Moorehouse 2015-06-17 09:22:29 -04:00
parent a7d394ef19
commit 1e0827a93e

View File

@ -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")