v0.6.1: fixed a freeze bug caused by the sad ghost
This commit is contained in:
parent
9924f5d28d
commit
ce47af7d8f
|
@ -260,7 +260,7 @@ public class DriedRose extends Artifact {
|
|||
int ghostPos;
|
||||
do {
|
||||
ghostPos = pos + PathFinder.NEIGHBOURS8[Random.Int(8)];
|
||||
} while (!Level.solid[ghostPos] || level.findMob(ghostPos) != null);
|
||||
} while (Level.solid[ghostPos] || level.findMob(ghostPos) != null);
|
||||
|
||||
heldGhost.pos = pos;
|
||||
heldGhost = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user