Skip to content

Commit

Permalink
style(fabric): 代码格式优化2
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlimiter committed Mar 20, 2024
1 parent fe5f42e commit 62729a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
import cn.evole.onebot.sdk.event.notice.group.GroupIncreaseNoticeEvent;
import cn.evole.onebot.sdk.util.MsgUtils;
import lombok.val;
import net.minecraft.network.chat.Component;
//#if MC <11900
import net.minecraft.network.chat.TextComponent;
//#endif


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import cn.evole.mods.mcbot.Const;
import cn.evole.mods.mcbot.config.ModConfig;
import cn.evole.onebot.sdk.event.message.GroupMessageEvent;
import cn.evole.onebot.sdk.event.message.MessageEvent;
import io.netty.util.concurrent.SingleThreadEventExecutor;
import lombok.val;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Arrays;
import java.util.concurrent.*;
Expand Down Expand Up @@ -89,7 +91,6 @@ public static String replace(String msg) {
}
break;
case "at":
/* TODO @cnlimiter need to fix it.
val id = data.split("=");
if (id.length == 2) {
if (id[0].equals("qq"))
Expand All @@ -98,7 +99,6 @@ public static String replace(String msg) {
break;
} catch (NumberFormatException ignored) {}
}
*/
matcher.appendReplacement(message, "[@]");
break;
case "record":
Expand Down

0 comments on commit 62729a4

Please sign in to comment.