Skip to content

Commit

Permalink
Merge pull request #477 from OvermindDL1/slime-piston-fix
Browse files Browse the repository at this point in the history
Fix mis-specified hashmap that was making slimes and such occasionall…
  • Loading branch information
Roadhog360 authored Jun 11, 2024
2 parents 0bcf7a8 + 64bce9e commit 86de34f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public boolean equals(Object obj) {

@Override
public int hashCode() {
return object.hashCode() + (meta == OreDictionary.WILDCARD_VALUE ? 0 : meta + 1);
return object.hashCode(); // Do not hash meta so wildcards and metas all get placed into the same bucket
}

/**
Expand Down

0 comments on commit 86de34f

Please sign in to comment.