Fixed hash-calculation for ConfigKey
This commit is contained in:
parent
42d9f7f887
commit
280c6d5849
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
package ru.bclib.config;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
public class ConfigKey {
|
||||
|
@ -34,7 +36,7 @@ public class ConfigKey {
|
|||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + path.hashCode();
|
||||
result = prime * result + Arrays.hashCode(path);
|
||||
result = prime * result + entry.hashCode();
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue