mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Refactored more subtypes usages to enum
This commit is contained in:
parent
80b61ccbd6
commit
252c941b4f
21 changed files with 63 additions and 46 deletions
|
|
@ -602,7 +602,7 @@ public class ModernCardRenderer extends CardRenderer {
|
|||
int partWidth = (int) Math.max(30, 0.20f * cardWidth);
|
||||
|
||||
// Is it a creature?
|
||||
boolean isVehicle = cardView.getSubTypes().contains("Vehicle");
|
||||
boolean isVehicle = cardView.getSubTypes().contains(SubType.VEHICLE);
|
||||
if (cardView.isCreature() || isVehicle) {
|
||||
int x = cardWidth - borderWidth - partWidth;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue