1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
This commit is contained in:
Martin Brom 2021-07-10 10:40:36 +02:00
parent e58a6219ff
commit 138394e5a0

View File

@ -6,7 +6,6 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
import org.bukkit.ChatColor;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Sound; import org.bukkit.Sound;
@ -116,11 +115,6 @@ public class AncientPedestal extends SimpleSlimefunItem<BlockDispenseHandler> {
stack.setItemMeta(im); stack.setItemMeta(im);
} else { } else {
ItemMeta im = stack.getItemMeta(); ItemMeta im = stack.getItemMeta();
if (!customName.startsWith(String.valueOf(ChatColor.COLOR_CHAR))) {
customName = ChatColor.WHITE + customName;
}
im.setDisplayName(customName); im.setDisplayName(customName);
stack.setItemMeta(im); stack.setItemMeta(im);
} }