Skip to content

Commit

Permalink
Fix non-square boards failing to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Sep 22, 2023
1 parent 4759427 commit 99d8488
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Board {
public Board(BoardConfig config) {
this.config = config;

this.fields = new Field[this.config.x][this.config.z];
this.fields = new Field[this.config.z][this.config.x];
for (int x = 0; x < this.config.x; x++) {
for (int z = 0; z < this.config.z; z++) {
this.setField(x, z, new NumberField(0));
Expand Down

0 comments on commit 99d8488

Please sign in to comment.