v0.3.3a: improved sandals of nature's use of name
This commit is contained in:
parent
84ab14a327
commit
62086adc4a
|
@ -177,14 +177,13 @@ public class SandalsOfNature extends Artifact {
|
||||||
@Override
|
@Override
|
||||||
public void storeInBundle( Bundle bundle ) {
|
public void storeInBundle( Bundle bundle ) {
|
||||||
super.storeInBundle(bundle);
|
super.storeInBundle(bundle);
|
||||||
bundle.put(NAME, name);
|
|
||||||
bundle.put(SEEDS, seeds.toArray(new String[seeds.size()]));
|
bundle.put(SEEDS, seeds.toArray(new String[seeds.size()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void restoreFromBundle( Bundle bundle ) {
|
public void restoreFromBundle( Bundle bundle ) {
|
||||||
super.restoreFromBundle(bundle);
|
super.restoreFromBundle(bundle);
|
||||||
name = bundle.getString( NAME );
|
name = NAMES[level()+1];
|
||||||
if (bundle.contains(SEEDS))
|
if (bundle.contains(SEEDS))
|
||||||
Collections.addAll(seeds , bundle.getStringArray(SEEDS));
|
Collections.addAll(seeds , bundle.getStringArray(SEEDS));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user