Minor comment and formatting cleanup

This commit is contained in:
2021-10-09 03:57:24 +02:00
parent 336c3c4bfb
commit f87ffc906c
8 changed files with 25 additions and 18 deletions

View File

@ -13,10 +13,10 @@ public class StarGateThread implements Runnable {
@Override
public void run() {
long time = System.currentTimeMillis() / 1000;
// Close open portals
//Close open portals
for (Iterator<Portal> iterator = Stargate.openPortalsQueue.iterator(); iterator.hasNext(); ) {
Portal portal = iterator.next();
// Skip always open and non-open gates
//Skip always open and non-open gates
if (portal.getOptions().isAlwaysOn() || !portal.isOpen()) {
continue;
}
@ -25,7 +25,7 @@ public class StarGateThread implements Runnable {
iterator.remove();
}
}
// Deactivate active portals
//Deactivate active portals
for (Iterator<Portal> iterator = Stargate.activePortalsQueue.iterator(); iterator.hasNext(); ) {
Portal portal = iterator.next();
if (!portal.isActive()) {