Only try to create the downloads folder if it does not yet exist
This commit is contained in:
@@ -67,9 +67,11 @@ public class ReplayModOnline {
|
|||||||
|
|
||||||
@Mod.EventHandler
|
@Mod.EventHandler
|
||||||
public void init(FMLInitializationEvent event) {
|
public void init(FMLInitializationEvent event) {
|
||||||
|
if (!getDownloadsFolder().exists()){
|
||||||
if (!getDownloadsFolder().mkdirs()) {
|
if (!getDownloadsFolder().mkdirs()) {
|
||||||
logger.warn("Failed to create downloads folder: " + getDownloadsFolder());
|
logger.warn("Failed to create downloads folder: " + getDownloadsFolder());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
new GuiHandler(this).register();
|
new GuiHandler(this).register();
|
||||||
FMLCommonHandler.instance().bus().register(this);
|
FMLCommonHandler.instance().bus().register(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user