From 18759884ec0a61e497332cdf38d97890eda15f35 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') 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 93f3394bc..283a0fd40 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 that)) return false; + if (obj instanceof CategoryIdentifierImpl thatImpl) { + return hashCode == obj.hashCode() && location.equals(thatImpl.location); + } + return location.equals(that.getIdentifier()); } -- cgit