dont even register voxy config if its not supported
This commit is contained in:
@@ -20,6 +20,8 @@ import net.minecraft.resources.Identifier;
|
|||||||
public class VoxyConfigMenu implements ConfigEntryPoint {
|
public class VoxyConfigMenu implements ConfigEntryPoint {
|
||||||
@Override
|
@Override
|
||||||
public void registerConfigLate(ConfigBuilder B) {
|
public void registerConfigLate(ConfigBuilder B) {
|
||||||
|
if (!VoxyCommon.isAvailable()) return;//Dont even register the config if its not avalible
|
||||||
|
|
||||||
var CFG = VoxyConfig.CONFIG;
|
var CFG = VoxyConfig.CONFIG;
|
||||||
|
|
||||||
var cc = B.registerModOptions("voxy", "Voxy", VoxyCommon.MOD_VERSION)
|
var cc = B.registerModOptions("voxy", "Voxy", VoxyCommon.MOD_VERSION)
|
||||||
|
|||||||
Reference in New Issue
Block a user