Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

Commit 42fa9bd

Browse files
No script? 🥺 (Hot Reloading when Deleted Script)
1 parent a9a37d0 commit 42fa9bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/states/CustomState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ class CustomState extends ScriptState
4646
while (reloadThread)
4747
{
4848
if (!Paths.fileExists('scripts/states/' + file + ext))
49+
{
50+
resetCustomState();
51+
4952
break;
53+
}
5054

5155
var newTime = FileSystem.stat(Paths.getPath('scripts/states/' + file + ext)).mtime.getTime();
5256

0 commit comments

Comments
 (0)