fix for potential infinite loop when cleaning data
As reported: at com.massivecraft.factions.Factions.get(Factions.java:99) at com.massivecraft.factions.FPlayer.getFaction(FPlayer.java:43) at com.massivecraft.factions.integration.SpoutFeatures.updateSingle(SpoutFeatures.java:218) at com.massivecraft.factions.integration.SpoutFeatures.updateAppearances(SpoutFeatures.java:154) at com.massivecraft.factions.FPlayer.resetFactionData(FPlayer.java:188) at com.massivecraft.factions.FPlayer.resetFactionData(FPlayer.java:194) at com.massivecraft.factions.FPlayers.clean(FPlayers.java:45) <repeat>
This commit is contained in:
parent
53d832369b
commit
c91703ac68
@ -43,7 +43,7 @@ public class FPlayers extends PlayerEntityCollection<FPlayer>
|
|||||||
if ( ! Factions.i.exists(fplayer.getFactionId()))
|
if ( ! Factions.i.exists(fplayer.getFactionId()))
|
||||||
{
|
{
|
||||||
p.log("Reset faction data (invalid faction) for player "+fplayer.getName());
|
p.log("Reset faction data (invalid faction) for player "+fplayer.getName());
|
||||||
fplayer.resetFactionData();
|
fplayer.resetFactionData(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user