Add logging for schematic validation in LitematicConverterV3

Include an info log message to indicate when schematic validation starts. This improves debugging and monitoring of the conversion process.
This commit is contained in:
iceBear67 committed 2025-01-08 19:08:42 +08:00
1 parent b11e914e87
commit 83c7930142
1 file changed
+2
@@ -57,6 +57,7 @@ public class LitematicConverterV3 extends LitematicConverter {
int width,
int length
) {
log.info("Validating schematic");
// find invalid palette ids
var buf = new PacketByteBuf(Unpooled.wrappedBuffer(weBlockData));
var paletteIds = new Int2ObjectOpenHashMap<>();
@@ -81,6 +82,7 @@ public class LitematicConverterV3 extends LitematicConverter {
paletteIds.keySet().intStream().filter(it->!touchedIds.contains(it))
.forEach(it-> log.error("Unused palette id: {}, blockState: {}", it, paletteIds.get(it)));
}
private static Vec3i decodePositionFromDataIndex(int width, int length, int index) {
// index = (y * width * length) + (z * width) + x
int y = index / (width * length);