Merge remote-tracking branch 'upstream/feature/translatable-text' int…

This commit is contained in:
Jesse Boyd
2019-11-21 13:50:28 +00:00
parent 66744bfaa4
commit 59b8465493
8 changed files with 39 additions and 34 deletions

View File

@ -774,9 +774,14 @@ public final class PlatformCommandManager {
editSession.flushQueue();
session.remember(editSession);
long time = System.currentTimeMillis() - start;
if (time > 1000) {
BBC.ACTION_COMPLETE.send(actor, time / 1000D);
long timems = System.currentTimeMillis() - start;
if (timems > 1000) {
actor.printDebug(TranslatableComponent.of(
"worldedit.command.time-elapsed",
TextComponent.of(timems + "m"),
TextComponent.of(-1),
TextComponent.of(Math.round(-1))
));
}
worldEdit.flushBlockBag(actor, editSession);