mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 21:09:45 +00:00
Config option for generator lighting
This commit is contained in:
1 parent
f419c4e6d5
commit
3d4636d8da
3 files changed
+39
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package mekanism.generators.client;
|
||||
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.generators.client.gui.GuiBioGenerator;
|
||||
import mekanism.generators.client.gui.GuiGasGenerator;
|
||||
import mekanism.generators.client.gui.GuiHeatGenerator;
|
||||
@@ -44,6 +45,18 @@ public class GeneratorsClientProxy extends GeneratorsCommonProxy
|
||||
ClientRegistry.registerTileEntity(TileEntityWindTurbine.class, "WindTurbine", new RenderWindTurbine());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadConfiguration()
|
||||
{
|
||||
super.loadConfiguration();
|
||||
|
||||
MekanismGeneratorsClient.enableAmbientLighting = Mekanism.configuration.get("generation", "EnableAmbientLighting", true).getBoolean(true);
|
||||
MekanismGeneratorsClient.ambientLightingLevel = Mekanism.configuration.get("generation", "AmbientLightingLevel", 15, "", 0, 15).getInt(15);
|
||||
|
||||
if(Mekanism.configuration.hasChanged())
|
||||
Mekanism.configuration.save();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerRenderInformation()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user