From 8fbf230f8e499bf6bf6f17c41c3e739350d28b67 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 15 Jan 2022 03:11:33 +0800 Subject: Fix #670 and Apotheosis's Deadly Plugin --- .../me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/src/main/java') diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java index d2ff9e98c..ac2fb20f8 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java @@ -55,6 +55,10 @@ public class CategoryIdentifierImpl implements CategoryIdenti @Override public boolean equals(Object obj) { if (!(obj instanceof CategoryIdentifier)) return false; + if (obj instanceof CategoryIdentifierImpl) { + return hashCode == obj.hashCode() && location.equals(((CategoryIdentifierImpl) obj).location); + } + return location.equals(((CategoryIdentifier) obj).getIdentifier()); } -- cgit