Updated core and wrapper
This commit is contained in:
+1
-1
Submodule core updated: 816c4fa76a...5ac51dd2a5
@@ -73,7 +73,7 @@ public class ForgeClientProxy
|
||||
@SubscribeEvent
|
||||
public void worldUnloadEvent(WorldEvent.Unload event)
|
||||
{
|
||||
eventApi.worldUnloadEvent();
|
||||
eventApi.worldUnloadEvent(WorldWrapper.getWorldWrapper(event.getWorld()));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
@@ -42,6 +42,7 @@ import com.seibel.lod.core.enums.rendering.FogColorMode;
|
||||
import com.seibel.lod.core.enums.rendering.FogDistance;
|
||||
import com.seibel.lod.core.enums.rendering.FogDrawMode;
|
||||
import com.seibel.lod.core.objects.MinDefaultMax;
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient;
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient.IAdvanced;
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient.IAdvanced.IBuffers;
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient.IAdvanced.IDebugging;
|
||||
@@ -90,6 +91,7 @@ public class ForgeConfig
|
||||
public final Graphics graphics;
|
||||
public final WorldGenerator worldGenerator;
|
||||
public final Advanced advanced;
|
||||
public final ForgeConfigSpec.BooleanValue optionsButton;
|
||||
|
||||
|
||||
//================//
|
||||
@@ -99,6 +101,10 @@ public class ForgeConfig
|
||||
{
|
||||
builder.push(this.getClass().getSimpleName());
|
||||
{
|
||||
optionsButton = builder
|
||||
.comment("\n\n"
|
||||
+ IClient.OPTIONS_BUTTON_DESC)
|
||||
.define("Options Button", IClient.OPTIONS_BUTTON_DEFAULT);
|
||||
graphics = new Graphics(builder);
|
||||
worldGenerator = new WorldGenerator(builder);
|
||||
advanced = new Advanced(builder);
|
||||
|
||||
@@ -56,7 +56,16 @@ public class LodConfigWrapperSingleton implements ILodConfigWrapperSingleton
|
||||
public final IGraphics graphics;
|
||||
public final IWorldGenerator worldGenerator;
|
||||
public final IAdvanced advanced;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean getOptionsButton() {
|
||||
return ForgeConfig.CLIENT.optionsButton.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setOptionsButton(boolean newOptionsButton) {
|
||||
ForgeConfig.CLIENT.optionsButton.set(newOptionsButton);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IGraphics graphics()
|
||||
@@ -556,6 +565,6 @@ public class LodConfigWrapperSingleton implements ILodConfigWrapperSingleton
|
||||
ForgeConfig.CLIENT.advanced.buffers.rebuildTimes.set(newBufferRebuildTimes);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user