fix: fix duplicate position adding
This commit is contained in:
parent
4eb61a8f48
commit
9b8e3a7be3
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user