forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -76,8 +76,7 @@ public class Fightserver {
|
||||
|
||||
private void setupPortal(String gameMode) {
|
||||
FightserverPortal portal = FightserverPortal.findFree(gameMode);
|
||||
if (portal == null)
|
||||
return;
|
||||
if (portal == null) return;
|
||||
|
||||
portals.add(portal);
|
||||
portal.setServer(this);
|
||||
@@ -107,8 +106,7 @@ public class Fightserver {
|
||||
}
|
||||
|
||||
private <T> void update(T old, T current, Consumer<FightserverPortal> observer) {
|
||||
if (!old.equals(current))
|
||||
portals.forEach(observer);
|
||||
if (!old.equals(current)) portals.forEach(observer);
|
||||
}
|
||||
|
||||
private void remove() {
|
||||
|
||||
Reference in New Issue
Block a user