forked from ChomeNS/chomens-bot-java
some update yea yeah
This commit is contained in:
parent
463d62ea2f
commit
ef8f2be4cf
2 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,8 @@ public class CommandBlockCommand implements Command {
|
||||||
|
|
||||||
final CompletableFuture<CompoundTag> future = bot.core().runTracked(String.join(" ", args));
|
final CompletableFuture<CompoundTag> future = bot.core().runTracked(String.join(" ", args));
|
||||||
|
|
||||||
|
if (future == null) return null;
|
||||||
|
|
||||||
future.thenApply(tags -> {
|
future.thenApply(tags -> {
|
||||||
if (!tags.contains("LastOutput") || !(tags.get("LastOutput") instanceof StringTag)) return tags;
|
if (!tags.contains("LastOutput") || !(tags.get("LastOutput") instanceof StringTag)) return tags;
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,8 @@ public class CorePlugin extends PositionPlugin.Listener {
|
||||||
|
|
||||||
run(command);
|
run(command);
|
||||||
|
|
||||||
|
if (!bot.options().useCore()) return null;
|
||||||
|
|
||||||
final int transactionId = nextTransactionId++;
|
final int transactionId = nextTransactionId++;
|
||||||
|
|
||||||
// promises are renamed to future lmao
|
// promises are renamed to future lmao
|
||||||
|
|
Loading…
Reference in a new issue