v0.2.4: fixed a casting error with mimic items
This commit is contained in:
parent
b2e29708a0
commit
6b432a176e
|
@ -64,7 +64,7 @@ public class Mimic extends Mob {
|
||||||
@Override
|
@Override
|
||||||
public void restoreFromBundle( Bundle bundle ) {
|
public void restoreFromBundle( Bundle bundle ) {
|
||||||
super.restoreFromBundle( bundle );
|
super.restoreFromBundle( bundle );
|
||||||
items = new ArrayList<Item>( (Collection<? extends Item>) bundle.getCollection( ITEMS ) );
|
items = new ArrayList<Item>( (Collection<Item>) ((Collection<?>) bundle.getCollection( ITEMS ) ));
|
||||||
adjustStats( bundle.getInt( LEVEL ) );
|
adjustStats( bundle.getInt( LEVEL ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user