ported and updated cloth /config and added basic ram allocation checking
This commit is contained in:
@@ -2,6 +2,10 @@ plugins {
|
||||
id 'multiloader-loader'
|
||||
id 'fabric-loom'
|
||||
}
|
||||
repositories {
|
||||
maven { url "https://maven.shedaniel.me/" }
|
||||
maven { url "https://maven.terraformersmc.com/releases/" }
|
||||
}
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${minecraft_version}"
|
||||
mappings loom.layered {
|
||||
@@ -10,6 +14,10 @@ dependencies {
|
||||
}
|
||||
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
|
||||
implementation 'com.moandjiezana.toml:toml4j:0.7.2'
|
||||
modApi("me.shedaniel.cloth:cloth-config-fabric:18.0.145") {
|
||||
exclude(group: "net.fabricmc.fabric-api")
|
||||
}
|
||||
}
|
||||
|
||||
loom {
|
||||
|
@@ -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