mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Fix region file watcher ignoring linear files
This commit is contained in:
parent
35c236e9ce
commit
0d36a0f70b
@ -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("\\.");
|
||||
|
Loading…
Reference in New Issue
Block a user