v2.2.0: fixed new bomb logic causing crashes with frozen heaps

This commit is contained in:
Evan Debenham
2023-09-06 16:15:43 -04:00
parent 3183df3bbd
commit e9e432b2c5

View File

@@ -320,7 +320,7 @@ public class Heap implements Bundlable {
items.remove(item);
((Potion) item).shatter(pos);
frozen = true;
} else if (item instanceof Bomb){
} else if (item instanceof Bomb && ((Bomb) item).fuse != null){
frozen = frozen || ((Bomb) item).fuse.freeze();
}
}