From c91703ac68c19498f98b35274e15547985ce0b49 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sat, 7 Jan 2012 15:56:34 -0600 Subject: [PATCH] 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) --- src/com/massivecraft/factions/FPlayers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/FPlayers.java b/src/com/massivecraft/factions/FPlayers.java index d9a160d1..41974182 100644 --- a/src/com/massivecraft/factions/FPlayers.java +++ b/src/com/massivecraft/factions/FPlayers.java @@ -43,7 +43,7 @@ public class FPlayers extends PlayerEntityCollection if ( ! Factions.i.exists(fplayer.getFactionId())) { p.log("Reset faction data (invalid faction) for player "+fplayer.getName()); - fplayer.resetFactionData(); + fplayer.resetFactionData(false); } } }