diff --git a/gradle.properties b/gradle.properties index 151671d..cd91715 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.daemon=false mc_version=1.19.2 forge_version=43.1.16 -myversion=1.0.0.1 \ No newline at end of file +myversion=1.0.0.2 \ No newline at end of file diff --git a/src/main/java/dev/zontreck/libzontreck/chat/ChatColor.java b/src/main/java/dev/zontreck/libzontreck/chat/ChatColor.java index fb8173f..a83733b 100644 --- a/src/main/java/dev/zontreck/libzontreck/chat/ChatColor.java +++ b/src/main/java/dev/zontreck/libzontreck/chat/ChatColor.java @@ -23,7 +23,8 @@ public class ChatColor { Bold, Italic, Strikethrough, - Crazy + Crazy, + Reset } public static char CODE = 'ยง'; public static String BLACK = build("0"); @@ -164,6 +165,10 @@ public class ChatColor { { return CRAZY; } + case Reset: + { + return RESET+WHITE; + } default: { return RESET+CRAZY; diff --git a/src/main/java/dev/zontreck/libzontreck/chat/ChatColorFactory.java b/src/main/java/dev/zontreck/libzontreck/chat/ChatColorFactory.java index 1b7fc4d..c7933c6 100644 --- a/src/main/java/dev/zontreck/libzontreck/chat/ChatColorFactory.java +++ b/src/main/java/dev/zontreck/libzontreck/chat/ChatColorFactory.java @@ -10,12 +10,17 @@ public class ChatColorFactory { public String build(){ return built; } + public void reset() + { + built=""; + append(ChatColor.resetChat()); + } public ColorBuilder(){} } private ColorBuilder instance; public ChatColorFactory reset() { - instance.append(ChatColor.resetChat()); + instance.reset(); return this; } public ChatColorFactory set(ChatColor.ColorOptions option) diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 93f2da8..9c3a29c 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -19,7 +19,7 @@ modId="libzontreck" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata # see the associated build.gradle script for how to populate this completely automatically during a build -version="1.0.0.1" #mandatory +version="1.0.0.2" #mandatory # A display name for the mod displayName="LibZontreck" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/