Use Guava instead of Nio for J6 compatibility.

This commit is contained in:
Lex Manos 2015-06-18 11:47:34 -07:00
parent f2eec981ff
commit 01aac69514

View file

@ -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)
{ {