Skip to content

Commit

Permalink
fix: bump HMCColor & implement API-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jan 14, 2024
1 parent 442cddb commit 485f583
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "com.hibiscusmc"
version = "2.7.0"
version = "2.7.1"

allprojects {
apply(plugin = "java")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
if (!textColor.contains("#") && Hooks.isActiveHook("HMCColor")) {
HMCColorConfig.Colors colors = HMCColorContextKt.getHmcColor().getConfig().getColors().get(textColor);
if (colors != null) {
String hmccolor = colors.getBaseColor().getColor();
if (hmccolor.contains("#")) color = HMCCServerUtils.hex2Rgb(hmccolor);
else color = HMCCServerUtils.rgbToRgb(hmccolor);
color = colors.getBaseColor().getColor();
}
} else {
color = HMCCServerUtils.hex2Rgb(textColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void openMenu(@NotNull CosmeticUser user, Cosmetic cosmetic) {
ItemStack originalItem = user.getUserCosmeticItem(cosmetic);
if (originalItem == null || !cosmetic.isDyable()) return;

Gui gui = HMCColorApi.INSTANCE.colorMenu(player);
Gui gui = HMCColorApi.createColorMenu(player);
gui.updateTitle(Hooks.processPlaceholders(player, Settings.getDyeMenuName()));
gui.setItem(Settings.getDyeMenuInputSlot(), new GuiItem(originalItem));
gui.setDefaultTopClickAction(event -> {
Expand Down
Binary file removed lib/HMCColor-0.8.5-all.jar
Binary file not shown.
Binary file added lib/HMCColor-0.8.6.jar
Binary file not shown.

0 comments on commit 485f583

Please sign in to comment.