mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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
|
@Override
|
||||||
public void refresh() {
|
public void refresh() {
|
||||||
BoosterDraft draft = parentScreen.getDraft();
|
BoosterDraft draft = parentScreen.getDraft();
|
||||||
if (draft == null) { return; }
|
if (draft == null || !draft.hasNextChoice()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CardPool pool = draft.nextChoice();
|
CardPool pool = draft.nextChoice();
|
||||||
int packNumber = draft.getCurrentBoosterIndex() + 1;
|
int packNumber = draft.getCurrentBoosterIndex() + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user