Why there is Exception

Probably Resolves #143
This commit is contained in:
Nano committed 2022-07-19 14:03:23 +03:00
1 parent d43ac8adea
commit a13b030650
1 file changed
+3 -1
@@ -89,7 +89,9 @@ public class ChunkTracker {
var existingFlags = this.single.get(key);
if ((existingFlags & ChunkStatus.FLAG_HAS_BLOCK_DATA) == 0) {
throw new IllegalStateException("Tried to mark light data as ready for chunk [%s, %s] but it hasn't been loaded yet".formatted(x, z));
// Why is it so necessary to throw Exception
//throw new IllegalStateException("Tried to mark light data as ready for chunk [%s, %s] but it hasn't been loaded yet".formatted(x, z));
return;
}
this.single.put(key, existingFlags | ChunkStatus.FLAG_HAS_LIGHT_DATA);