Make sure the blocks are in the canvas.
This commit is contained in:
parent
a5060e014b
commit
19b6c3d95f
@ -826,6 +826,12 @@ public class Draw extends SoloGame
|
||||
continue blocks;
|
||||
}
|
||||
|
||||
if (!_canvas.contains(other))
|
||||
{
|
||||
// Block isn't in the canvas.
|
||||
continue blocks;
|
||||
}
|
||||
|
||||
// Add it to the pending list for change later.
|
||||
pending.add(other);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user