added missing 'this' qualifier

This commit is contained in:
Lars Neuhaus 2025-04-13 12:59:22 +02:00
parent 343decb05a
commit 4d90f5fc28

View File

@ -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);