1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Fixed Ancient Altar Items

This commit is contained in:
TheBusyBiscuit 2019-06-19 22:32:09 +02:00 committed by GitHub
parent 991c713e3d
commit 0a5c9e901e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,8 @@ public class AncientAltarListener implements Listener {
} }
else { else {
ItemMeta im = stack.getItemMeta(); ItemMeta im = stack.getItemMeta();
im.setDisplayName(ChatColor.RESET + customName); if (!customName.startsWith(ChatColor.COLOR_CHAR)) customName = ChatColor.RESET + customName;
im.setDisplayName(customName);
stack.setItemMeta(im); stack.setItemMeta(im);
} }
return stack; return stack;