mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Prevent crash when clicking on card with no active abilities
This commit is contained in:
@@ -345,8 +345,13 @@ public abstract class VCardDisplayArea extends VDisplayArea implements ActivateH
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (!selectCard(false)) {
|
if (!selectCard(false)) {
|
||||||
//if no cards in stack can be selected, just show zoom/details for card
|
//if no cards in stack can be selected, just show zoom/details for card
|
||||||
|
FThreads.invokeInEdtLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
showZoom();
|
showZoom();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user