Skip to content

Commit

Permalink
Shifted debug to warnings or errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 30, 2023
1 parent e8033dc commit 999a2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ public Biome getBiome(WorldInfo worldInfo, int x, int y, int z) {
if (c != null) {
int xx = Math.floorMod(x, 16);
int zz = Math.floorMod(z, 16);
//int yy = Math.max(Math.min(y * 4, worldInfo.getMaxHeight()), worldInfo.getMinHeight()); // To handle bug in Spigot
Biome biome = c.chunkBiomes().getOrDefault(new Vector(xx, y, zz), defaultBiome);
BentoBox.getInstance().logDebug(biome);
return biome;
} else {
BentoBox.getInstance().logDebug("Snapshot at " + chunkX + " " + chunkZ + " is not stored");
BentoBox.getInstance().logWarning("Snapshot at " + chunkX + " " + chunkZ + " is not stored");
return defaultBiome;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void generateNoise(WorldInfo worldInfo, Random r, int chunkX, int chunkZ,
if (chunk == null) {
// This should never be needed because islands should abut each other
//cd.setRegion(0, minY, 0, 16, 0, 16, Material.WATER);
BentoBox.getInstance().logDebug("No chunks found for " + xx + " " + zz);
BentoBox.getInstance().logError("No chunks found for " + xx + " " + zz);
return;
}
// Copy the chunk
Expand Down

0 comments on commit 999a2cb

Please sign in to comment.