Skip to content

Commit 20549e2

Browse files
committed
Re-added PotionBase.matches
1 parent d17981d commit 20549e2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/clashsoft/brewingapi/potion/type/PotionBase.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ public boolean equals(Object obj)
145145
return false;
146146
if (getClass() != obj.getClass())
147147
return false;
148-
PotionBase other = (PotionBase) obj;
148+
return this.matches((PotionBase) obj);
149+
}
150+
151+
public final boolean matches(PotionBase other)
152+
{
149153
if (this.name == null)
150154
{
151155
if (other.name != null)

0 commit comments

Comments
 (0)