mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 10:44:49 +00:00
Restore language sync
- Bring back 5 commits a force push dropped from GitHub master (0aad88c30)
- Keep the thin Bukkit entry; port language sync into IrisRuntime
- Fetch guides through GitHubLanguageSource instead of the removed catalog
This commit is contained in:
commit
5769b0d4e8
53 files changed
+13688
-14119
No files matched your search
+5
-1
@@ -219,7 +219,11 @@ public final class OfflineRegionGenerator {
|
||||
}
|
||||
|
||||
private static void force(Path path) throws IOException {
|
||||
try (FileChannel channel = FileChannel.open(path, Files.isDirectory(path)
|
||||
boolean directory = Files.isDirectory(path);
|
||||
if (directory && File.separatorChar == '\\') {
|
||||
return;
|
||||
}
|
||||
try (FileChannel channel = FileChannel.open(path, directory
|
||||
? StandardOpenOption.READ : StandardOpenOption.WRITE)) {
|
||||
channel.force(true);
|
||||
}
|
||||
|
||||
+2
-1
@@ -6,6 +6,7 @@ import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
import org.mockito.MockedStatic;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.channels.FileChannel;
|
||||
import java.nio.file.Files;
|
||||
@@ -78,7 +79,7 @@ public final class OfflineRegionPublicationTest {
|
||||
assertFalse(Files.exists(target));
|
||||
} else {
|
||||
OfflineRegionGenerator.publish(staged, target);
|
||||
assertEquals(List.of(data, nested, staged, output), forced);
|
||||
assertEquals(File.separatorChar == '\\' ? List.of(data) : List.of(data, nested, staged, output), forced);
|
||||
assertEquals("checkpoint", Files.readString(target.resolve("world/data")));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user