From 26553f8875f47d1f21170878431ed8f6f9ed3cd4 Mon Sep 17 00:00:00 2001 From: hugeBlack Date: Tue, 16 Feb 2021 20:04:47 +0800 Subject: [PATCH] rename&build --- build.gradle | 3 +++ package.json | 9 --------- src/main/java/com/hb/mcfdebugger/a.java | 18 ------------------ .../mcfdebugger/mixin/FunctionCommandHook.java | 4 ---- src/main/resources/fabric.mod.json | 1 - src/main/resources/mcfdebugger.mixins.json | 2 +- 6 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 package.json delete mode 100644 src/main/java/com/hb/mcfdebugger/a.java diff --git a/build.gradle b/build.gradle index 8c8d3ae..68f9c69 100644 --- a/build.gradle +++ b/build.gradle @@ -55,6 +55,9 @@ jar { from("LICENSE") { rename { "${it}_${project.archivesBaseName}"} } + from { + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } } // configure the maven publication diff --git a/package.json b/package.json deleted file mode 100644 index 6ad58cd..0000000 --- a/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "dependencies": { - "@types/ws": "^7.4.0", - "bufferutil": "^4.0.3", - "utf-8-validate": "^5.0.4", - "websocket": "^1.0.33", - "ws": "^7.4.3" - } -} diff --git a/src/main/java/com/hb/mcfdebugger/a.java b/src/main/java/com/hb/mcfdebugger/a.java deleted file mode 100644 index 4a29b88..0000000 --- a/src/main/java/com/hb/mcfdebugger/a.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.hb.mcfdebugger; - -import net.minecraft.server.function.CommandFunction; - -import java.lang.reflect.Field; - -import static com.hb.mcfdebugger.McfDebugger.LOG; - -//for debug only -public class a { - public static void a(String cmdList){ - - } - public static void b(){ - LOG(McfDebugger.tagFunctionLeft); - LOG(McfDebugger.stackList); - } -} diff --git a/src/main/java/com/hb/mcfdebugger/mixin/FunctionCommandHook.java b/src/main/java/com/hb/mcfdebugger/mixin/FunctionCommandHook.java index 665a440..8f83a92 100644 --- a/src/main/java/com/hb/mcfdebugger/mixin/FunctionCommandHook.java +++ b/src/main/java/com/hb/mcfdebugger/mixin/FunctionCommandHook.java @@ -1,19 +1,15 @@ package com.hb.mcfdebugger.mixin; import com.hb.mcfdebugger.McfDebugger; -import com.hb.mcfdebugger.SendCmdObj; import net.minecraft.server.command.FunctionCommand; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.function.CommandFunction; import net.minecraft.text.TranslatableText; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; -import com.hb.mcfdebugger.a; -import java.lang.reflect.Field; import java.util.Collection; import java.util.Iterator; -import java.util.LinkedList; @Mixin(FunctionCommand.class) public class FunctionCommandHook { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 36835c6..6a4133b 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -29,7 +29,6 @@ "depends": { "fabricloader": ">=0.7.4", - "fabric": "*", "minecraft": "1.16.x" }, "suggests": { diff --git a/src/main/resources/mcfdebugger.mixins.json b/src/main/resources/mcfdebugger.mixins.json index d77ad89..9362d30 100644 --- a/src/main/resources/mcfdebugger.mixins.json +++ b/src/main/resources/mcfdebugger.mixins.json @@ -5,7 +5,7 @@ "compatibilityLevel": "JAVA_8", "mixins": [ "regcmd", - "debugHook", + "DebugHook", "CommandFunctionManagerHook", "SetCommandIndex", "FunctionLoaderHook",