mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
Bug Fix
This commit is contained in:
parent
6c89e78f54
commit
0f16c987f0
@ -233,14 +233,12 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
|
||||
}
|
||||
|
||||
public void resetTriggerStats() {
|
||||
Iterator<StatInstance> stat_ite=mmoData.getStatMap().getInstances().iterator();
|
||||
while(stat_ite.hasNext()) {
|
||||
StatInstance instance=stat_ite.next();
|
||||
for(StatInstance instance:mmoData.getStatMap().getInstances()) {
|
||||
Iterator<StatModifier> iter = instance.getModifiers().iterator();
|
||||
while (iter.hasNext()) {
|
||||
StatModifier modifier = iter.next();
|
||||
if (modifier.getKey().startsWith(StatTrigger.TRIGGER_PREFIX))
|
||||
modifier.unregister(mmoData);
|
||||
iter.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user