Added entity counts to #preview confirmation page

This commit is contained in:
Intelli 2022-02-25 16:33:41 -07:00
parent 42233f1f72
commit 9bdac6db4d

View File

@ -413,6 +413,9 @@ public class Rollback extends Queue {
}
}
}
else {
entityCount1++;
}
}
else if (rowAction == 3) { // entity kill
String world = Util.getWorldName(rowWorldId);
@ -1488,7 +1491,7 @@ public class Rollback extends Queue {
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(blockCount), (blockCount == 1 ? Selector.FIRST : Selector.SECOND)));
modifyCount++;
}
else if (preview == 0) {
else {
if (itemCount > 0 || actionList.contains(4)) {
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(itemCount), (itemCount == 1 ? Selector.FIRST : Selector.SECOND)));
modifyCount++;
@ -1502,7 +1505,7 @@ public class Rollback extends Queue {
modifyCount++;
}
if (blockCount > 0 || !actionList.contains(4)) {
if (blockCount > 0 || !actionList.contains(4) || preview > 0) {
if (modifyCount > 0) {
modifiedData.append(", ");
}
@ -1510,10 +1513,6 @@ public class Rollback extends Queue {
modifyCount++;
}
}
else if (preview > 0) {
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_BLOCK, NumberFormat.getInstance().format(blockCount), (blockCount == 1 ? Selector.FIRST : Selector.SECOND)));
modifyCount++;
}
StringBuilder modifiedDataVerbose = new StringBuilder();
if (verbose && preview == 0 && !actionList.contains(11)) {