Skip to content

Commit

Permalink
Allow maxCacheTicks = 0 to disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 2, 2021
1 parent f423545 commit 6ff83ff
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,9 @@ public Collection<NPC> getNearby(NPC npc) {
ret.add(npc2);
}
}
if (maxCacheTicks <= 0) {
return ret;
}
return this.cached = ret;
}
}

0 comments on commit 6ff83ff

Please sign in to comment.