Fix mistranslation of poses

This commit is contained in:
fullwall 2012-11-28 12:08:09 +08:00
parent 6a637fe903
commit c374b0cf38
1 changed files with 5 additions and 2 deletions

View File

@ -85,7 +85,10 @@ public class Poses extends Trait {
@Override
public void save(DataKey key) {
key.removeKey("list");
for (int i = 0; i < poses.size(); i++)
key.setString("list." + String.valueOf(i), poses.get(i).stringValue());
int i = 0;
for (Pose pose : poses.values()) {
key.setString("list." + i, pose.stringValue());
i++;
}
}
}