From 13d2caed5eda43fe153361abfaae3af6ba744d0f Mon Sep 17 00:00:00 2001 From: NeumimTo Date: Fri, 15 May 2020 23:03:21 +0200 Subject: [PATCH] polished some uis --- Common/src/main/resources/assets/nt-rpg/Skills-Definitions.conf | 2 +- .../7/src/main/java/cz/neumimto/rpg/sponge/gui/GuiHelper.java | 1 + .../main/java/cz/neumimto/rpg/sponge/gui/SpongeUIReader.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/src/main/resources/assets/nt-rpg/Skills-Definitions.conf b/Common/src/main/resources/assets/nt-rpg/Skills-Definitions.conf index 8a181f9d7..2bff86d5a 100644 --- a/Common/src/main/resources/assets/nt-rpg/Skills-Definitions.conf +++ b/Common/src/main/resources/assets/nt-rpg/Skills-Definitions.conf @@ -26,7 +26,7 @@ Skills: [ Id: "id:vitalize" Skill-Types: [ - "ntrpg:healing" + "ntrpg:heal" ] Handler: "ntrpg:speed_boost" } diff --git a/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/GuiHelper.java b/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/GuiHelper.java index 646b1fd12..fb2cec516 100644 --- a/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/GuiHelper.java +++ b/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/GuiHelper.java @@ -618,6 +618,7 @@ public static ItemStack toItemStack(ClassDefinition a) { } } + itemStack.offer(Keys.DISPLAY_NAME, Text.EMPTY); itemStack.offer(Keys.ITEM_LORE, lore); itemStack.offer(new InventoryCommandItemMenuData("ninfo class " + a.getName())); itemStack.offer(new MenuInventoryData(true)); diff --git a/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/SpongeUIReader.java b/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/SpongeUIReader.java index 841411967..94692db47 100644 --- a/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/SpongeUIReader.java +++ b/Implementations/Sponge/7/src/main/java/cz/neumimto/rpg/sponge/gui/SpongeUIReader.java @@ -88,7 +88,7 @@ protected ItemStack itemStringToItemStack(String[] split, Supplier comma itemStack.offer(Keys.HIDE_ATTRIBUTES, true); itemStack.offer(Keys.HIDE_ENCHANTMENTS, true); itemStack.offer(Keys.HIDE_MISCELLANEOUS, true); - + if (dye != null) { itemStack.offer(Keys.DYE_COLOR, dye); }