F map autoupdate during flying fixed.
This commit is contained in:
@@ -8,6 +8,18 @@ import java.util.Set;
|
||||
public abstract class Factions {
|
||||
protected static Factions instance = getFactionsImpl();
|
||||
|
||||
public static Factions getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private static Factions getFactionsImpl() {
|
||||
switch (Conf.backEnd) {
|
||||
case JSON:
|
||||
return new JSONFactions();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract Faction getFactionById(String id);
|
||||
|
||||
public abstract Faction getByTag(String str);
|
||||
@@ -39,17 +51,5 @@ public abstract class Factions {
|
||||
|
||||
public abstract void forceSave(boolean sync);
|
||||
|
||||
public static Factions getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private static Factions getFactionsImpl() {
|
||||
switch (Conf.backEnd) {
|
||||
case JSON:
|
||||
return new JSONFactions();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract void load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user