v0.8.2c: fixed compilation error caused by dropping legacy code
This commit is contained in:
parent
c0ec2f1e2e
commit
0608a5447d
|
@ -30,7 +30,6 @@ import com.watabou.utils.Reflection;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
|
||||||
|
|
||||||
public abstract class SpecialRoom extends Room {
|
public abstract class SpecialRoom extends Room {
|
||||||
|
|
||||||
|
@ -168,7 +167,9 @@ public abstract class SpecialRoom extends Room {
|
||||||
public static void restoreRoomsFromBundle( Bundle bundle ) {
|
public static void restoreRoomsFromBundle( Bundle bundle ) {
|
||||||
runSpecials.clear();
|
runSpecials.clear();
|
||||||
if (bundle.contains( ROOMS )) {
|
if (bundle.contains( ROOMS )) {
|
||||||
Collections.addAll(runSpecials, bundle.getClassArray(ROOMS));
|
for (Class<? extends Room> type : bundle.getClassArray(ROOMS)) {
|
||||||
|
runSpecials.add(type);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
initForRun();
|
initForRun();
|
||||||
ShatteredPixelDungeon.reportException(new Exception("specials array didn't exist!"));
|
ShatteredPixelDungeon.reportException(new Exception("specials array didn't exist!"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user