added missing 'this' qualifier
This commit is contained in:
parent
343decb05a
commit
4d90f5fc28
@ -44,7 +44,7 @@ public class Towerdefense extends StatelessGame {
|
||||
long rightLeftDifference = previousDirections.stream().filter(integer -> integer == 0).count() - previousDirections.stream().filter(integer -> integer == 2).count();
|
||||
if(rightLeftDifference >= 2 || direction == 2) origin = 1;
|
||||
if(rightLeftDifference <= -2 || direction == 0) bound = 2;
|
||||
direction = random.nextInt(origin, bound);
|
||||
direction = this.random.nextInt(origin, bound);
|
||||
previousDirections.add(direction);
|
||||
}
|
||||
this.addMazePosition(position, Block.WHITE_WOOL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user