v0.9.1: fixed bees rarely appearing inside of doors

This commit is contained in:
Evan Debenham 2020-11-16 19:51:40 -05:00
parent 0f6c06002f
commit 00f0b77cdb

View File

@ -101,11 +101,10 @@ public class Honeypot extends Item {
int newPos = pos;
if (Actor.findChar( pos ) != null) {
ArrayList<Integer> candidates = new ArrayList<>();
boolean[] passable = Dungeon.level.passable;
for (int n : PathFinder.NEIGHBOURS4) {
int c = pos + n;
if (passable[c] && Actor.findChar( c ) == null) {
if (!Dungeon.level.solid[c] && Actor.findChar( c ) == null) {
candidates.add( c );
}
}