mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
Fix #1075
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user