Skip to content

Commit ce46078

Browse files
committed
Fixed RGB sign
1 parent 77bb8cd commit ce46078

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,10 @@
694694
<artifactId>paperlib</artifactId>
695695
<groupId>io.papermc</groupId>
696696
</exclusion>
697+
<exclusion>
698+
<artifactId>particleeffect</artifactId>
699+
<groupId>com.darkblade12</groupId>
700+
</exclusion>
697701
</exclusions>
698702
</dependency>
699703
<dependency>

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ public List<ComponentPackage> getSignText(@NotNull String locale) {
748748
lines.add(new ComponentPackage(new ComponentBuilder()
749749
.color(ChatColor.RESET)
750750
.append(left)
751-
.appendLegacy(Util.getItemStackName(getItem()))
751+
.append(TextComponent.fromLegacyText(Util.getItemStackName(getItem())))
752752
.append(right)
753753
.create()));
754754
} else {
@@ -762,7 +762,7 @@ public List<ComponentPackage> getSignText(@NotNull String locale) {
762762
}
763763
} else {
764764
lines.add(new ComponentPackage(new ComponentBuilder().color(ChatColor.RESET).appendLegacy(plugin.text().of("signs.item-left").forLocale())
765-
.append(Util.getItemStackName(getItem()))
765+
.append(TextComponent.fromLegacyText(Util.getItemStackName(getItem())))
766766
.appendLegacy(plugin.text().of("signs.item-right").forLocale()).create()));
767767
}
768768

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ public static Material getSignMaterial() {
11101110
* @return Json
11111111
*/
11121112
public static String componentsToJson(BaseComponent[] components) {
1113+
plugin.getLogger().info(ComponentSerializer.toString(components));
11131114
return ComponentSerializer.toString(components);
11141115
}
11151116

0 commit comments

Comments
 (0)