Merge pull request #13 from quiqueck/hashFix

Fixed hash-calculation for `ConfigKey`
This commit is contained in:
paulevsGitch 2021-07-19 21:33:36 +03:00 committed by GitHub
commit c39eca3bd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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