Skip to content

Instantly share code, notes, and snippets.

@deathrat
Created October 24, 2015 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathrat/95a8f7a959f547e23898 to your computer and use it in GitHub Desktop.
Save deathrat/95a8f7a959f547e23898 to your computer and use it in GitHub Desktop.
//CHANGE
if (Constants.isGameServer && now - Server.lastResetTiles > 14400000L) {
Zones.saveProtectedTiles();
}
//TO
if (Constants.isGameServer && now - Server.lastResetTiles > 14400000L) {
Zones.saveProtectedTiles();
Server.lastResetTiles = System.currentTimeMillis();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment