From f2bd91e44554d68914aa2d5f3d1e5da7035e2fd8 Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Fri, 3 Jun 2022 23:16:44 +0800 Subject: [PATCH] Fix version type incorrectly --- .../hendrixshen/bilibilidanmaku/BilibiliDanmakuReference.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/top/hendrixshen/bilibilidanmaku/BilibiliDanmakuReference.java b/src/main/java/top/hendrixshen/bilibilidanmaku/BilibiliDanmakuReference.java index 85cb009..f56b696 100644 --- a/src/main/java/top/hendrixshen/bilibilidanmaku/BilibiliDanmakuReference.java +++ b/src/main/java/top/hendrixshen/bilibilidanmaku/BilibiliDanmakuReference.java @@ -1,12 +1,13 @@ package top.hendrixshen.bilibilidanmaku; import net.fabricmc.loader.api.FabricLoader; +import top.hendrixshen.bilibilidanmaku.util.VersionParser; public class BilibiliDanmakuReference { private static final String MOD_ID = "bilibili-danmaku"; private static final String MOD_NAME = "Bilibili Danmaku"; private static final String MOD_VERSION = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow(RuntimeException::new).getMetadata().getVersion().getFriendlyString(); - private static final String MOD_VERSION_TYPE = "Development"; + private static final String MOD_VERSION_TYPE = VersionParser.getVersionType(MOD_VERSION); private static final int CONFIG_VERSION = 1;