mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Fix possible runtime exceptions with Targeting Overlay.
This commit is contained in:
@@ -365,7 +365,7 @@ public class TargetingOverlay {
|
||||
@Override
|
||||
public void paintComponent(final Graphics g) {
|
||||
// No need for this except in match view
|
||||
if (!Singletons.getControl().getCurrentScreen().isMatchScreen()) {
|
||||
if (Singletons.getControl().getCurrentScreen() != matchUI.getScreen()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user