This commit is contained in:
dordsor21
2021-07-16 19:07:02 +01:00
parent 420c45a29a
commit 861fb45e5c
3 changed files with 13 additions and 2 deletions

View File

@ -396,7 +396,7 @@ public class HistorySubCommands {
PaginationBox pages = cached == null ? null : cached.get();
if (page == null || pages == null) {
RollbackOptimizedHistory edit = database.getEdit(other, index).get();
SimpleChangeSetSummary summary = edit.summarize(null, false);
SimpleChangeSetSummary summary = edit.summarize(RegionWrapper.GLOBAL(), false);
if (summary != null) {
List<Countable<BlockState>> distr = summary.getBlockDistributionWithData();
SelectionCommands.BlockDistributionResult distrPages = new SelectionCommands.BlockDistributionResult((List) distr, true, pageCommand);
@ -405,7 +405,11 @@ public class HistorySubCommands {
}
page = 1;
}
player.print(pages.create(page));
if (pages == null) {
player.print(Caption.of("fawe.worldedit.history.distr.summary_null"));
} else {
player.print(pages.create(page));
}
}
@Command(