Fix region file watcher ignoring linear files

This commit is contained in:
Lukas Rieger (Blue) 2024-02-24 22:09:25 +01:00
parent 35c236e9ce
commit 0d36a0f70b
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -33,6 +33,7 @@
import de.bluecolored.bluemap.core.util.FileHelper;
import de.bluecolored.bluemap.core.world.World;
import de.bluecolored.bluemap.core.world.mca.MCAWorld;
import de.bluecolored.bluemap.core.world.mca.region.RegionType;
import java.io.IOException;
import java.nio.file.*;
@ -109,8 +110,7 @@ public void run() {
}
private synchronized void updateRegion(String regionFileName) {
if (!regionFileName.endsWith(".mca")) return;
if (!regionFileName.startsWith("r.")) return;
if (RegionType.forFileName(regionFileName) == null) return;
try {
String[] filenameParts = regionFileName.split("\\.");