mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
This prevents silent issues where a mod gets the value of the setting before configs are loaded, which means the default value is always returned. As there may be situations where the getting the config setting before configs are loaded is needed, and it is not preferable to hardcode the default value, the original behavior is made available through #getRaw. Implements and closes #7716 * Remove getRaw() method This is effectively replaced with the expression `spec.isLoaded() ? configValue.get() : configValue.getDefault()`. * Remove forceSystemNanoTime config setting As implemented, it never had any effect as any place where the config value would be queried happens before the configs are loaded.