V0.2.0a: Fixed crashing on deleted items when loading saves.
This commit is contained in:
@@ -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 );
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user