From 46dd79a75c529787030feb731604f6e9344b22d9 Mon Sep 17 00:00:00 2001 From: valoeghese Date: Mon, 4 May 2020 15:38:35 +1200 Subject: [PATCH] add log4j --- build.gradle | 5 +++++ src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9bbe858..ec0d80e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ buildscript { repositories { + mavenCentral() jcenter() maven { name = "Fabric" @@ -35,6 +36,10 @@ minecraft { } dependencies { + // fabric loader requires log4j + implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.1' + implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.1' + //to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" diff --git a/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java b/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java index 316b8bf..b3f1b03 100644 --- a/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java +++ b/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java @@ -6,7 +6,6 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import net.minecraft.client.gui.screen.TitleScreen; -import net.minecraft.client.screen.MainMenuScreen; @Mixin(TitleScreen.class) public class ExampleMixin {