Skip to content

Commit 529860b

Browse files
committed
Fix problems with gradient processing
1 parent 3a60e93 commit 529860b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![badge](https://img.shields.io/discord/896466173166747650?label=discord)](https://discord.gg/2PpdrfxhD4)
88
[![badge](https://img.shields.io/github/license/ForestTechMC/ForestColorAPI)](https://github.com/ForestTechMC/ForestColorAPI/blob/master/LICENSE.txt)
99

10-
**[JavaDoc 1.3](https://foresttechmc.github.io/ForestColorAPI/1.3/)**
10+
**[JavaDoc 1.4](https://foresttechmc.github.io/ForestColorAPI/1.4/)**
1111

1212
Small and effective Color API for your plugins.\
1313
Only 1.16+ version of spigot support!

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>cz.foresttech</groupId>
88
<artifactId>ForestColorAPI</artifactId>
9-
<version>1.3</version>
9+
<version>1.4</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>

src/main/java/cz/foresttech/api/ColorAPI.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public static String colorizeGradient(String input) {
147147
String text = matcher.group(1);
148148
matcher.appendReplacement(output, "{#" + text + "<}{#" + text + ">}");
149149
}
150-
input = String.valueOf(output);
150+
matcher.appendTail(output);
151+
152+
input = output.toString();
151153

152154
matcher = patternGrad.matcher(input);
153155
while (matcher.find()) {

0 commit comments

Comments
 (0)