Use Guava instead of Nio for J6 compatibility.
This commit is contained in:
parent
f2eec981ff
commit
01aac69514
1 changed files with 3 additions and 2 deletions
|
@ -2,10 +2,11 @@ package net.minecraftforge.common;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Files;
|
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
|
|
||||||
|
import com.google.common.io.Files;
|
||||||
|
|
||||||
import net.minecraft.world.chunk.storage.IChunkLoader;
|
import net.minecraft.world.chunk.storage.IChunkLoader;
|
||||||
import net.minecraft.world.storage.IPlayerFileData;
|
import net.minecraft.world.storage.IPlayerFileData;
|
||||||
import net.minecraft.world.storage.ISaveHandler;
|
import net.minecraft.world.storage.ISaveHandler;
|
||||||
|
@ -56,7 +57,7 @@ public class WorldSpecificSaveHandler implements ISaveHandler
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Files.copy(parentFile.toPath(), file.toPath());
|
Files.copy(parentFile, file);
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue