1.18-pre4
This commit is contained in:
1 parent
59e0a9ebaf
commit
90964e2e57
5 files changed
+15
-17
No files matched your search
@@ -54,7 +54,7 @@ public class WorldTools
|
||||
if (region == null) return false;
|
||||
return region.hasChunk(chpos);
|
||||
}
|
||||
Path regionPath = new File(((MinecraftServerInterface )world.getServer()).getCMSession().getWorldDirectory(world.getRegistryKey()), "region").toPath();
|
||||
Path regionPath = new File(((MinecraftServerInterface )world.getServer()).getCMSession().getWorldDirectory(world.getRegistryKey()).toFile(), "region").toPath();
|
||||
Path regionFilePath = regionPath.resolve(currentRegionName);
|
||||
File regionFile = regionFilePath.toFile();
|
||||
if (!regionFile.exists())
|
||||
@@ -65,7 +65,7 @@ public class WorldTools
|
||||
if (!deepcheck) return true; // not using cache in this case.
|
||||
try
|
||||
{
|
||||
RegionFile region = new RegionFile(regionFile, regionPath.toFile(), true);
|
||||
RegionFile region = new RegionFile(regionFile.toPath(), regionPath, true);
|
||||
if (regionCache != null) regionCache.put(currentRegionName, region);
|
||||
return region.hasChunk(chpos);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user