mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
fix null pointer on draft refresh (#7863)
This commit is contained in:
@@ -1997,7 +1997,9 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
|
||||
@Override
|
||||
public void refresh() {
|
||||
BoosterDraft draft = parentScreen.getDraft();
|
||||
if (draft == null) { return; }
|
||||
if (draft == null || !draft.hasNextChoice()) {
|
||||
return;
|
||||
}
|
||||
|
||||
CardPool pool = draft.nextChoice();
|
||||
int packNumber = draft.getCurrentBoosterIndex() + 1;
|
||||
|
||||
Reference in New Issue
Block a user