ported and updated cloth /config and added basic ram allocation checking
This commit is contained in:
@@ -6,13 +6,6 @@ public class LoadSupport implements ModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
||||
// This method is invoked by the Fabric mod loader when it is ready
|
||||
// to load your mod. You can access Fabric and Common code in this
|
||||
// project.
|
||||
|
||||
// Use Fabric to bootstrap the Common mod.
|
||||
Constants.LOG.info("Hello Fabric world!");
|
||||
CommonClass.init();
|
||||
}
|
||||
}
|
||||
|
@@ -13,6 +13,6 @@ public class MixinTitleScreen {
|
||||
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
Constants.LOG.info("Mixin MC title Type: {}", Minecraft.getInstance().getVersionType());
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
package com.vaporvee.loadsupport.platform;
|
||||
|
||||
import com.vaporvee.loadsupport.CommonClass;
|
||||
import com.vaporvee.loadsupport.Constants;
|
||||
import com.vaporvee.loadsupport.LSConfig;
|
||||
import com.vaporvee.loadsupport.platform.services.IConfig;
|
||||
import me.shedaniel.autoconfig.AutoConfig;
|
||||
import me.shedaniel.autoconfig.annotation.Config;
|
||||
import me.shedaniel.autoconfig.serializer.Toml4jConfigSerializer;
|
||||
|
||||
@Config(name = Constants.MOD_ID)
|
||||
public class LSConfigFabric implements IConfig {
|
||||
public static LSConfig config;
|
||||
@Override
|
||||
public void InitConfig() {
|
||||
AutoConfig.register(LSConfig.class, Toml4jConfigSerializer::new);
|
||||
config = AutoConfig.getConfigHolder(LSConfig.class).getConfig();
|
||||
CommonClass.checkConfig(config);
|
||||
}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
com.vaporvee.loadsupport.platform.LSConfigFabric
|
Reference in New Issue
Block a user