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

Update AncientAltarListener.java

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

View File

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