We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17981d commit 20549e2Copy full SHA for 20549e2
1 file changed
src/main/java/clashsoft/brewingapi/potion/type/PotionBase.java
@@ -145,7 +145,11 @@ public boolean equals(Object obj)
145
return false;
146
if (getClass() != obj.getClass())
147
148
- PotionBase other = (PotionBase) obj;
+ return this.matches((PotionBase) obj);
149
+ }
150
+
151
+ public final boolean matches(PotionBase other)
152
+ {
153
if (this.name == null)
154
{
155
if (other.name != null)
0 commit comments