diff options
author | makamys <makamys@outlook.com> | 2023-05-16 22:33:28 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2023-05-16 23:39:39 +0200 |
commit | f5bebbe833d84f6b8240b3c843a80a46a875a56d (patch) | |
tree | 8469fa30b5a594451b8601c0425a10f02478a2e5 /src | |
parent | e215eba5aa5972bea651759095af69de697e99f0 (diff) | |
download | Neodymium-f5bebbe833d84f6b8240b3c843a80a46a875a56d.tar.gz Neodymium-f5bebbe833d84f6b8240b3c843a80a46a875a56d.tar.bz2 Neodymium-f5bebbe833d84f6b8240b3c843a80a46a875a56d.zip |
Include dimension id in warnings/errors
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/ChunkMesh.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java index ea2d637..0a8c11c 100644 --- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java +++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java @@ -121,8 +121,9 @@ public class ChunkMesh extends Mesh { // Generate a stack trace throw new IllegalArgumentException(); } catch(IllegalArgumentException e) { + String dimId = wr.worldObj != null && wr.worldObj.provider != null ? "" + wr.worldObj.provider.dimensionId : "UNKNOWN"; if(!errors.isEmpty()) { - LOGGER.error("Errors in chunk ({}, {}, {})", x, y, z); + LOGGER.error("Errors in chunk ({}, {}, {}) in dimension {}:", x, y, z, dimId); for(String error : errors) { LOGGER.error("Error: " + error); } @@ -135,7 +136,7 @@ public class ChunkMesh extends Mesh { LOGGER.error("Skipping chunk due to errors."); quadBuf.reset(); } else { - LOGGER.debug("Warnings in chunk ({}, {}, {}): {}", x, y, z, String.join(", ", warnings)); + LOGGER.debug("Warnings in chunk ({}, {}, {}) in dimension {}: {}", x, y, z, dimId, String.join(", ", warnings)); } } } |