mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 16:17:20 +00:00
Replace Loader with java.nio.files
This commit is contained in:
1 parent
ffb1198da2
commit
5c7441241c
22 files changed
+186
-442
No files matched your search
@@ -34,6 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -63,7 +64,12 @@ public class ForgePlatform extends ModPlatform {
|
||||
public boolean reload() {
|
||||
getTerraConfig().load(this);
|
||||
getRawConfigRegistry().clear();
|
||||
boolean succeed = getRawConfigRegistry().loadAll(this);
|
||||
boolean succeed = true;
|
||||
try {
|
||||
getRawConfigRegistry().loadAll(this);
|
||||
} catch(IOException e) {
|
||||
succeed = false;
|
||||
}
|
||||
|
||||
MinecraftServer server = getServer();
|
||||
|
||||
|
||||
Reference in new issue
Block a user