Skip to content

Instantly share code, notes, and snippets.

@truelinux
Last active July 19, 2016 17:53
Show Gist options
  • Save truelinux/f55d9c4f1956e5989354d2fe456c11ad to your computer and use it in GitHub Desktop.
Save truelinux/f55d9c4f1956e5989354d2fe456c11ad to your computer and use it in GitHub Desktop.
public void tick(int tick) {
if((lastTick - lastRun) >= 20) {
//Everything here will be ran each second
}
if((lastTick - lastRun) >= 20 * 30) {
//Everything here will be ran each second
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment