Skip to content

Commit

Permalink
Fix ItemType hashCode (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Nov 20, 2018
1 parent f1b9d3e commit aa5fdf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skript-aliases
Submodule skript-aliases updated 3 files
+8 −3 combat.sk
+10 −1 decoration.sk
+4 −4 misc.sk
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/aliases/ItemData.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public boolean equals(final @Nullable Object obj) {

@Override
public int hashCode() {
int hash = stack.hashCode();
int hash = type.hashCode(); // Has collisions, but probably not too many of them
// TODO need a reliable BlockValues hashCode
// BlockValues values = blockValues;
// if (values != null)
Expand Down

0 comments on commit aa5fdf5

Please sign in to comment.