9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00

Oh the commands

This commit is contained in:
Daniel Mills
2020-08-01 04:36:57 -04:00
parent e5cdd9a7f1
commit 3b76bb64a9
34 changed files with 1427 additions and 792 deletions

View File

@@ -31,16 +31,24 @@ public class IrisHotloadManager
boolean modified = false;
int c = 0;
for(FileWatcher i : watchers)
try
{
if(i.checkModified())
for(FileWatcher i : watchers)
{
c++;
Iris.info("File Modified: " + i.getFile().getPath());
modified = true;
if(i.checkModified())
{
c++;
Iris.info("File Modified: " + i.getFile().getPath());
modified = true;
}
}
}
catch(Throwable e)
{
}
if(modified)
{
watchers.clear();