mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Prevent crash if calling hasStringType with ""
This commit is contained in:
@@ -196,6 +196,9 @@ public final class CardType implements Comparable<CardType>, CardTypeView {
|
||||
}
|
||||
|
||||
public boolean hasStringType(String t) {
|
||||
if (t.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
if (subtypes.contains(t)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user