Fix bug where data migration from 1.8 would fail.
This commit is contained in:
parent
765e187bd1
commit
6339861819
@ -44,7 +44,10 @@ public class FactionColl extends Coll<Faction>
|
||||
{
|
||||
Faction ret = super.get(oid);
|
||||
|
||||
if (ret == null)
|
||||
// We should only trigger automatic clean if the whole database system is initialized.
|
||||
// A cleaning can only be successful if all data is available.
|
||||
// Example Reason: When creating the special factions for the first time "createSpecialFactions" a clean would be triggered otherwise.
|
||||
if (ret == null && Factions.get().isDatabaseInitialized())
|
||||
{
|
||||
String message = Txt.parse("<b>Non existing factionId <h>%s <b>requested. <i>Cleaning all boards and uplayers.", this.fixId(oid));
|
||||
Factions.get().log(message);
|
||||
|
Loading…
Reference in New Issue
Block a user