diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-01-15 03:11:33 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-01-16 03:01:09 +0800 |
| commit | 18759884ec0a61e497332cdf38d97890eda15f35 (patch) | |
| tree | 2667606f58769577d96a0d453eaf7f942b4da27f /runtime/src/main/java/me/shedaniel | |
| parent | b3629f7ef2fbc5dba81e150d7407d9cbb0f6611b (diff) | |
| download | RoughlyEnoughItems-18759884ec0a61e497332cdf38d97890eda15f35.tar.gz RoughlyEnoughItems-18759884ec0a61e497332cdf38d97890eda15f35.tar.bz2 RoughlyEnoughItems-18759884ec0a61e497332cdf38d97890eda15f35.zip | |
Fix #670 and Apotheosis's Deadly Plugin
Diffstat (limited to 'runtime/src/main/java/me/shedaniel')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/common/category/CategoryIdentifierImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
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<D extends Display> 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()); } |
