Fix mistranslation of poses

This commit is contained in:
fullwall 2012-11-28 12:08:09 +08:00
parent 153026b8bd
commit d0e59def6b

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++;
}
}
}