mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-19 11:49:27 +00:00
Properly load MekanismTools configuration
This commit is contained in:
1 parent
b3a3dbb827
commit
59df1b5c8f
4 files changed
+42
-5
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package mekanism.tools.common;
|
||||
|
||||
import mekanism.common.Mekanism;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
public class ToolsCommonProxy
|
||||
{
|
||||
/**
|
||||
* Set and load the mod's common configuration properties.
|
||||
*/
|
||||
public void loadConfiguration()
|
||||
{
|
||||
Mekanism.configuration.load();
|
||||
MekanismTools.armourSpawnRate = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "mob-armor-spawn-rate", 0.03).getDouble(0.03);
|
||||
Mekanism.configuration.save();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user