V0.2.0a: Fixed crashing on deleted items when loading saves.
This commit is contained in:
parent
b8080a9dbe
commit
a02a5f2c0d
|
@ -117,7 +117,7 @@ public class Bag extends Item implements Iterable<Item> {
|
|||
public void restoreFromBundle( Bundle bundle ) {
|
||||
super.restoreFromBundle( bundle );
|
||||
for (Bundlable item : bundle.getCollection( ITEMS )) {
|
||||
((Item)item).collect( this );
|
||||
if (item != null) ((Item)item).collect( this );
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user