Skip to content

Commit

Permalink
Fix region file watcher ignoring linear files
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Feb 24, 2024
1 parent 35c236e commit 0d36a0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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("\\.");
Expand Down

0 comments on commit 0d36a0f

Please sign in to comment.