Skip to content

Commit

Permalink
fix: use #mapExists
Browse files Browse the repository at this point in the history
  • Loading branch information
KoutaChan committed Mar 24, 2024
1 parent a68c4aa commit 503542d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public void onTick(TickEvent.ClientTickEvent event) {
DungeonRooms.logger.info("DungeonRooms: gameStage set to " + gameStage);
}

Integer[][] map = MapUtils.updatedMap();
if (map != null) {
if (MapUtils.mapExists()) {
DungeonRooms.logger.warn("DungeonRooms: Run started but gameStage is not on 2");
gameStage = 2;
DungeonRooms.logger.info("DungeonRooms: gameStage set to " + gameStage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

package io.github.quantizr.dungeonrooms.utils;

import io.github.quantizr.dungeonrooms.DungeonRooms;
import io.github.quantizr.dungeonrooms.dungeons.catacombs.DungeonManager;
import io.github.quantizr.dungeonrooms.dungeons.catacombs.RoomDetection;
import net.minecraft.block.material.MapColor;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Items;
Expand All @@ -31,8 +29,8 @@
import net.minecraft.world.storage.MapData;

import java.awt.*;
import java.util.*;
import java.util.List;
import java.util.*;

public class MapUtils {

Expand Down

0 comments on commit 503542d

Please sign in to comment.