فهرست منبع

fully update to loader 0.4, should fix prod

geni 6 سال پیش
والد
کامیت
3307c9033c
5فایلهای تغییر یافته به همراه20 افزوده شده و 19 حذف شده
  1. 4 7
      build.gradle
  2. 1 1
      gradle.properties
  3. 3 3
      src/main/java/com/umollu/ash/AshMod.java
  4. 10 7
      src/main/resources/fabric.mod.json
  5. 2 1
      src/main/resources/umollu_ash.mixins.json

+ 4 - 7
build.gradle

@@ -28,13 +28,10 @@ dependencies {
 
 	// Fabric API. This is technically optional, but you probably want it anyway.
 	modCompile "net.fabricmc:fabric:${project.fabric_version}"
-	
-	modCompile("io.github.cottonmc:client-commands:${clientcommands_version}") {
-		transitive = false
-	}
-    include("io.github.cottonmc:client-commands:${clientcommands_version}") {
-		transitive = false
-	}
+
+    // Used for commands
+	modCompile "io.github.cottonmc:client-commands:${clientcommands_version}"
+    include "io.github.cottonmc:client-commands:${clientcommands_version}"
 
 	implementation 'com.google.code.gson:gson:2.8.5'
 }

+ 1 - 1
gradle.properties

@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
 	loader_version=0.4.3+build.134
 
 # Mod Properties
-	mod_version = 1.1.1
+	mod_version = 1.1.2
 	maven_group = com.umollu
 	archives_base_name = ash
 

+ 3 - 3
src/main/java/com/umollu/ash/AshMod.java

@@ -4,7 +4,7 @@ import com.google.gson.Gson;
 import com.mojang.brigadier.arguments.IntegerArgumentType;
 import io.github.cottonmc.clientcommands.ArgumentBuilders;
 import io.github.cottonmc.clientcommands.ClientCommands;
-import net.fabricmc.api.ModInitializer;
+import net.fabricmc.api.ClientModInitializer;
 import net.fabricmc.loader.api.FabricLoader;
 
 import java.io.File;
@@ -12,13 +12,13 @@ import java.io.FileOutputStream;
 import java.io.FileReader;
 import java.io.IOException;
 
-public class AshMod implements ModInitializer {
+public class AshMod implements ClientModInitializer {
 
     public static final String MOD_ID = "umollu_ash";
     public static AshConfig config;
 
     @Override
-    public void onInitialize() {
+    public void onInitializeClient() {
         String configPath = FabricLoader.getInstance().getConfigDirectory() + "/" + MOD_ID + ".json";
 
         Gson gson = new Gson();

+ 10 - 7
src/main/resources/fabric.mod.json

@@ -1,16 +1,19 @@
 {
+  "schemaVersion": 1,
   "id": "umollu_ash",
   "name": "ASH - Another Simple HUD",
   "description": "ASH - Another Simple HUD with FPS count and coordinates.",
   "version": "${version}",
-  "side": "universal",
-  "initializers": [
-    "com.umollu.ash.AshMod"
-  ],
+  "environment": "*",
+  "entrypoints": {
+    "client": [
+      "com.umollu.ash.AshMod"
+    ]
+  },
   "requires": {
     "fabric": "*"
   },
-  "mixins": {
-    "client": "umollu_ash.client.json"
-  }
+  "mixins": [
+    "umollu_ash.mixins.json"
+  ]
 }

+ 2 - 1
src/main/resources/umollu_ash.client.json → src/main/resources/umollu_ash.mixins.json

@@ -2,7 +2,8 @@
   "required": true,
   "package": "com.umollu.ash.mixin",
   "compatibilityLevel": "JAVA_8",
-  "mixins": [
+  "minVersion": "0.7.11",
+  "client": [
     "GameRendererMixin"
   ],
   "injectors": {