Permalink
Browse files

Only default to $IGNORE name on the first itemstack. This can potenti…

…ally be breaking, if the comparison itemstack is given second.
  • Loading branch information...
me4502 committed Mar 22, 2017
1 parent 3c63ada commit d5016287253b66b05c6d6b1948da0dd8d1e830f1
Showing with 4 additions and 4 deletions.
  1. +3 −3 pom.xml
  2. +1 −1 src/main/java/com/sk89q/craftbook/util/ItemUtil.java
View
@@ -37,9 +37,9 @@
<url>http://maven.sk89q.com/repo</url>
</repository>
<repository>
- <id>comphenix-rep</id>
- <name>Comphenix Repository</name>
- <url>http://assets.comphenix.net/plugin/repository/everything/</url>
+ <id>dmulloy2-repo</id>
+ <name>dmulloy2 Repository</name>
+ <url>http://repo.dmulloy2.net/content/groups/public/</url>
</repository>
<repository>
<id>md_5-rep</id>
@@ -248,7 +248,7 @@ public static boolean areItemMetaIdentical(ItemMeta meta, ItemMeta meta2) {
if(meta2.hasDisplayName())
displayName2 = ChatColor.translateAlternateColorCodes('&', stripResetChar(meta2.getDisplayName().trim()));
else
- displayName2 = "$IGNORE";
+ displayName2 = "";
if(!displayName1.equals(displayName2)) {
if(!displayName1.equals("$IGNORE") && !displayName2.equals("$IGNORE"))

0 comments on commit d501628

Please sign in to comment.