Skip to content

Commit

Permalink
what
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Sep 18, 2024
1 parent 87cdfbd commit 4fbde9d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ class PlayState extends ExtendableState {
if (FileSystem.exists(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.endsWith('.hxs')) {
if (Assets.exists(folder + file)) {
scriptArray.push(new Hscript(Assets.getText(folder + file)));
}
scriptArray.push(new Hscript(folder + file));
}
}
}
Expand Down Expand Up @@ -178,9 +176,7 @@ class PlayState extends ExtendableState {
if (FileSystem.exists(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.endsWith('.hxs')) {
if (Assets.exists(folder + file)) {
scriptArray.push(new Hscript(Assets.getText(folder + file)));
}
scriptArray.push(new Hscript(folder + file));
}
}
}
Expand Down

0 comments on commit 4fbde9d

Please sign in to comment.