feat(release): v0.2.1

Rename mixin
This commit is contained in:
itqop 2024-11-10 20:05:36 +03:00
parent 8fc7b9a5f9
commit b666930fe7
3 changed files with 4 additions and 5 deletions

View File

@ -38,7 +38,7 @@ mod_name=ChatIT
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=All Rights Reserved
# The mod version. See https://semver.org/
mod_version=0.2-BETA
mod_version=0.2.1-BETA
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View File

@ -2,15 +2,14 @@ package org.itqop.chatit.mixins;
import com.mojang.brigadier.CommandDispatcher;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.server.commands.MsgCommand;
import org.itqop.chatit.commands.ChatITCommand;
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(MsgCommand.class)
public abstract class MixinMessageCommand {
@Mixin(net.minecraft.server.commands.MsgCommand.class)
public abstract class MsgCommand {
@Inject(method = "register", at = @At("HEAD"), cancellable = true)
private static void onRegister(CommandDispatcher<CommandSourceStack> dispatcher, CallbackInfo ci) {

View File

@ -4,7 +4,7 @@
"package": "org.itqop.chatit.mixins",
"refmap": "chatit.refmap.json",
"mixins": [
"MixinMessageCommand"
"MsgCommand"
],
"client": [],
"server": []