some update yea yeah
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user