v2.2.0: fixed new bomb logic causing crashes with frozen heaps
This commit is contained in:
@@ -320,7 +320,7 @@ public class Heap implements Bundlable {
|
|||||||
items.remove(item);
|
items.remove(item);
|
||||||
((Potion) item).shatter(pos);
|
((Potion) item).shatter(pos);
|
||||||
frozen = true;
|
frozen = true;
|
||||||
} else if (item instanceof Bomb){
|
} else if (item instanceof Bomb && ((Bomb) item).fuse != null){
|
||||||
frozen = frozen || ((Bomb) item).fuse.freeze();
|
frozen = frozen || ((Bomb) item).fuse.freeze();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user