v0.2.4: fixed a casting error with mimic items

This commit is contained in:
Evan Debenham 2015-02-07 20:14:08 -05:00
parent b2e29708a0
commit 6b432a176e

View File

@ -64,7 +64,7 @@ public class Mimic extends Mob {
@Override
public void restoreFromBundle( Bundle 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 ) );
}