Fixed hash-calculation for ConfigKey

This commit is contained in:
Frank Bauer 2021-07-19 19:24:34 +02:00
parent 42d9f7f887
commit 280c6d5849

View file

@ -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;
}