fix: fix duplicate position adding

This commit is contained in:
punchready 2021-07-24 22:58:02 +02:00
parent 4eb61a8f48
commit 9b8e3a7be3

View File

@ -726,7 +726,7 @@ public class GameLogic {
if(allOptions.isEmpty()) { if(allOptions.isEmpty()) {
return allOptions; return allOptions;
} }
return getFreeNeighbour(state, start.copy().add(allOptions.get(rand.nextInt(allOptions.size())))); return getFreeNeighbour(state, allOptions.get(rand.nextInt(allOptions.size())));
}else { }else {
return options; return options;
} }