Skip to content

Commit

Permalink
Give while the potential to run infinitely
Browse files Browse the repository at this point in the history
As long as you wait occasionally, rather than every loop.
  • Loading branch information
mcmonkey4eva committed Nov 11, 2014
1 parent d0ee352 commit b7fa00f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -152,6 +152,9 @@ else if (callback != null && callback.asBoolean()) {
if (data.instaTicks > max && max != 0)
return;
}
else {
data.instaTicks = 0;
}
data.LastChecked = System.currentTimeMillis();
if (TagManager.tag(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer(), ((BukkitScriptEntryData)scriptEntry.entryData).getNPC(),
data.value, false, scriptEntry).equalsIgnoreCase("true")) {
Expand Down

0 comments on commit b7fa00f

Please sign in to comment.