From 64bce9eabab8e10312c2f577a1afaf7ea8513b5a Mon Sep 17 00:00:00 2001 From: OvermindDL1 Date: Mon, 10 Jun 2024 20:39:52 -0600 Subject: [PATCH] Fix mis-specified hashmap that was making slimes and such occasionally not work right. It's likely this fixes a variety of heisenbugs. --- .../ganymedes01/etfuturum/api/mappings/RegistryMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ganymedes01/etfuturum/api/mappings/RegistryMapping.java b/src/main/java/ganymedes01/etfuturum/api/mappings/RegistryMapping.java index d623a13a1..bd0d790f8 100644 --- a/src/main/java/ganymedes01/etfuturum/api/mappings/RegistryMapping.java +++ b/src/main/java/ganymedes01/etfuturum/api/mappings/RegistryMapping.java @@ -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 } /**