some update yea yeah

This commit is contained in:
Chayapak 2023-05-05 09:47:28 +07:00
parent 463d62ea2f
commit ef8f2be4cf
2 changed files with 4 additions and 0 deletions

View file

@ -46,6 +46,8 @@ public class CommandBlockCommand implements Command {
final CompletableFuture<CompoundTag> future = bot.core().runTracked(String.join(" ", args));
if (future == null) return null;
future.thenApply(tags -> {
if (!tags.contains("LastOutput") || !(tags.get("LastOutput") instanceof StringTag)) return tags;

View file

@ -106,6 +106,8 @@ public class CorePlugin extends PositionPlugin.Listener {
run(command);
if (!bot.options().useCore()) return null;
final int transactionId = nextTransactionId++;
// promises are renamed to future lmao