Skip to content

Commit

Permalink
Merge pull request #762 from SnipUndercover/remove-empty-entries-in-o…
Browse files Browse the repository at this point in the history
…bjmodel

Remove empty entries when splitting .obj lines
  • Loading branch information
maddie480 committed Apr 29, 2024
2 parents 64a0f07 + 7026ad2 commit 5198e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Celeste.Mod.mm/Patches/ObjModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static ObjModel CreateFromStream(Stream stream, string fname) {
using (StreamReader streamReader = new StreamReader(stream)) {
string text;
while ((text = streamReader.ReadLine()) != null) {
string[] array = text.Split(' ');
string[] array = text.Split(' ', StringSplitOptions.RemoveEmptyEntries);
if (array.Length != 0) {
string a = array[0];
if (a == "o") {
Expand Down

0 comments on commit 5198e44

Please sign in to comment.