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;
|
package ru.bclib.config;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
public class ConfigKey {
|
public class ConfigKey {
|
||||||
|
@ -34,7 +36,7 @@ public class ConfigKey {
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + path.hashCode();
|
result = prime * result + Arrays.hashCode(path);
|
||||||
result = prime * result + entry.hashCode();
|
result = prime * result + entry.hashCode();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue