mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 12:32:15 +00:00
Fix PermanentCache not saving on servers
This commit is contained in:
1 parent
47fe331f40
commit
c4ae5092e7
1 file changed
+5
-1
@@ -7,6 +7,8 @@ import lombok.SneakyThrows;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
|
||||
public class PermanentCache<I> extends WorldCache<I> {
|
||||
|
||||
private static final List<PermanentCache<?>> allCaches = Lists.newArrayList();
|
||||
@@ -18,8 +20,10 @@ public class PermanentCache<I> extends WorldCache<I> {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
protected File getSaveFile() {
|
||||
if (FMLCommonHandler.instance().getSide().isServer()) {
|
||||
return new File(ident + ".dat");
|
||||
}
|
||||
return new File("saves", ident + ".dat");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user