summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornatanfudge <natan.lifsiz@gmail.com>2019-12-12 11:14:48 +0200
committernatanfudge <natan.lifsiz@gmail.com>2019-12-12 11:14:48 +0200
commit4c66c8fbbcecae808efd1004a2461834a2fc8440 (patch)
tree76e07cce614314b89f3250457c478d39114dcb36
parent45980235836783822e756d0a2abfab8cbb781232 (diff)
1.15
-rw-r--r--gradle.properties6
-rw-r--r--src/main/java/net/fabricmc/example/mixin/ExampleMixin.java12
-rw-r--r--src/main/resources/fabric.mod.json4
3 files changed, 11 insertions, 11 deletions
diff --git a/gradle.properties b/gradle.properties
index 2837781..2dfbb58 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx1G
 
 # Fabric Properties
 	# Check these on https://modmuss50.me/fabric.html
-	minecraft_version=1.14.4
-	yarn_mappings=1.14.4+build.15
+	minecraft_version=1.15
+	yarn_mappings=1.15+build.2
 	loader_version=0.7.2+build.174
 
 	#Fabric api
-	fabric_version=0.4.1+build.245-1.14
+    fabric_version=0.4.23+build.276-1.15
 
 	loom_version=0.2.6-SNAPSHOT
 
diff --git a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java b/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java
index fe09c76..5da1043 100644
--- a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java
+++ b/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java
@@ -1,16 +1,16 @@
 package net.fabricmc.example.mixin;
 
-import net.minecraft.client.MinecraftClient;
+import net.minecraft.client.gui.screen.TitleScreen;
 import org.spongepowered.asm.mixin.Mixin;
 import org.spongepowered.asm.mixin.injection.At;
 import org.spongepowered.asm.mixin.injection.Inject;
 import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
 
-@Mixin(MinecraftClient.class)
+@Mixin(TitleScreen.class)
 // Mixins HAVE to be written in java due to constraints in the mixin system.
 public class ExampleMixin {
-	@Inject(at = @At("HEAD"), method = "init()V")
-	private void init(CallbackInfo info) {
-		System.out.println("This line is printed by an example mod mixin!");
-	}
+    @Inject(at = @At("HEAD"), method = "init()V")
+    private void init(CallbackInfo info) {
+        System.out.println("This line is printed by an example mod mixin!");
+    }
 }
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 01095d8..1dcc46e 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -26,10 +26,10 @@
     "modid.mixins.json"
   ],
   "depends": {
-    "fabricloader": ">=0.4.0",
+    "fabricloader": ">=0.7.1",
     "fabric": "*",
     "fabric-language-kotlin": "*",
-    "minecraft": "1.14.x"
+    "minecraft": "1.15.x"
   },
   "suggests": {
     "flamingo": "*"