From 161b444d6730e38e1ef0d0556068b57d0dee5d02 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 24 Oct 2014 22:13:31 -0400 Subject: [PATCH] v0.2.2: corrected casting errors in javac compiler --- src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java | 2 +- .../shatteredpixeldungeon/levels/RegularLevel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java index 11da6354a..14a5c6bfb 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java @@ -341,7 +341,7 @@ public class Heap implements Bundlable { public void restoreFromBundle( Bundle bundle ) { pos = bundle.getInt( POS ); type = Type.valueOf( bundle.getString( TYPE ) ); - items = new LinkedList( (Collection) bundle.getCollection( ITEMS ) ); + items = new LinkedList( (Collection) ((Collection) bundle.getCollection( ITEMS )) ); items.removeAll(Collections.singleton(null)); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java index 8a9f037fe..d6c3cbec1 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java @@ -690,7 +690,7 @@ public abstract class RegularLevel extends Level { public void restoreFromBundle( Bundle bundle ) { super.restoreFromBundle( bundle ); - rooms = new HashSet( (Collection) bundle.getCollection( "rooms" ) ); + rooms = new HashSet( (Collection) ((Collection) bundle.getCollection( "rooms" )) ); for (Room r : rooms) { if (r.type == Type.WEAK_FLOOR) { weakFloorCreated = true;