Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lscgh committed Feb 5, 2024
1 parent 7b9dde9 commit 1204857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mavenmcserver/src/main/java/mavenmcserver/game/GameState.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public boolean applyGravityTick(Location gameStartBlock, FieldPoint lastPlacePos
*/
FieldState getWinnerIfAny(int winRequiredAmount, FieldPoint lastChanged) {

Bukkit.getLogger().info("State at lastChanged=" + this.getStateAt(lastChanged));
System.out.println("State at lastChanged=" + this.getStateAt(lastChanged));

for(Vector3i direction: GameState.DIRECTIONS_TO_CHECK) {

Bukkit.getLogger().info("Current direction=" + direction);
System.out.println("Current direction=" + direction);

int amountOfCorrectFields = this.getFieldsInARowCount(lastChanged, direction);

Bukkit.getLogger().info("Amount=" + amountOfCorrectFields);
System.out.println("Amount=" + amountOfCorrectFields);

if(amountOfCorrectFields >= winRequiredAmount) return this.getStateAt(lastChanged);
else if(amountOfCorrectFields > 1) {
Expand Down

0 comments on commit 1204857

Please sign in to comment.