chore: update to 1.20.5
This commit is contained in:
parent
0e036599cf
commit
3fa30b834d
|
@ -8,19 +8,19 @@ import java.util.function.Supplier
|
|||
import javax.lang.model.element.Modifier.*
|
||||
|
||||
plugins {
|
||||
id("jfmod") version "1.5-SNAPSHOT"
|
||||
id("jfmod") version "1.6-SNAPSHOT"
|
||||
}
|
||||
|
||||
allprojects { group = "io.gitlab.jfronny" }
|
||||
base.archivesName = "breakme"
|
||||
|
||||
// https://fabricmc.net/develop/
|
||||
val fabricVersion = "0.91.1+1.20.4"
|
||||
jfMod {
|
||||
minecraftVersion = "1.20.4"
|
||||
minecraftVersion = "1.20.5"
|
||||
yarn("build.1")
|
||||
loaderVersion = "0.15.0"
|
||||
libJfVersion = "3.14.1"
|
||||
loaderVersion = "0.15.10"
|
||||
libJfVersion = "3.15.5"
|
||||
fabricApiVersion = "0.97.6+1.20.5"
|
||||
|
||||
modrinth {
|
||||
projectId = "breakme"
|
||||
|
@ -37,13 +37,13 @@ jfMod {
|
|||
if (flavour == "") flavour = "modrinth"
|
||||
|
||||
dependencies {
|
||||
modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v2:${jfMod.libJfVersion.get()}")
|
||||
modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v2")
|
||||
|
||||
// Dev env
|
||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil:${jfMod.libJfVersion.get()}")
|
||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny:${jfMod.libJfVersion.get()}")
|
||||
modLocalRuntime("net.fabricmc.fabric-api:fabric-api:$fabricVersion")
|
||||
modLocalRuntime("com.terraformersmc:modmenu:9.0.0-pre.1")
|
||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil")
|
||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny")
|
||||
modLocalRuntime("net.fabricmc.fabric-api:fabric-api")
|
||||
modLocalRuntime("com.terraformersmc:modmenu:10.0.0-beta.1")
|
||||
}
|
||||
|
||||
loom {
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.gitlab.jfronny.breakme;
|
|||
|
||||
import io.gitlab.jfronny.breakme.client.Client;
|
||||
import io.gitlab.jfronny.breakme.crash.Method;
|
||||
import io.gitlab.jfronny.commons.logging.Logger;
|
||||
import io.gitlab.jfronny.commons.logger.SystemLoggerPlus;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
|
@ -11,7 +11,7 @@ import net.minecraft.util.Language;
|
|||
|
||||
public class BreakMe implements ModInitializer {
|
||||
public static final String MOD_ID = "breakme";
|
||||
public static final Logger LOGGER = Logger.forName(MOD_ID);
|
||||
public static final SystemLoggerPlus LOGGER = SystemLoggerPlus.forName(MOD_ID);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
@ -41,7 +41,7 @@ public class BreakMe implements ModInitializer {
|
|||
private static void crash() throws Exception {
|
||||
Method method = BreakMeConfig.method;
|
||||
String name = Language.getInstance().get(MOD_ID + ".jfconfig.enum.Method." + method.name(), method.name());
|
||||
LOGGER.info("Invoking the crash (using " + name + ")");
|
||||
LOGGER.info("Invoking the crash (using {0})", name);
|
||||
method.crash();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ public class SegfaultProvider implements CrashProvider {
|
|||
// Required to prevent early initialization of LWJGL for some reason
|
||||
private static class Impl {
|
||||
private static void crash() {
|
||||
BufferUtils.zeroBuffer(PointerBuffer.create(0, 1000));
|
||||
BufferUtils.zeroBuffer(PointerBuffer.create(1, 1000));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue