fix tracked core
This commit is contained in:
parent
6e7906e4f3
commit
9a4b4ed078
1 changed files with 3 additions and 1 deletions
|
@ -142,6 +142,8 @@ public class CorePlugin extends PositionPlugin.Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public CompletableFuture<CompoundTag> runTracked (String command) {
|
public CompletableFuture<CompoundTag> runTracked (String command) {
|
||||||
|
final Vector3i beforeBlock = block.clone();
|
||||||
|
|
||||||
run(command);
|
run(command);
|
||||||
|
|
||||||
if (!bot.options.useCore) return null;
|
if (!bot.options.useCore) return null;
|
||||||
|
@ -152,7 +154,7 @@ public class CorePlugin extends PositionPlugin.Listener {
|
||||||
final CompletableFuture<CompoundTag> future = new CompletableFuture<>();
|
final CompletableFuture<CompoundTag> future = new CompletableFuture<>();
|
||||||
transactions.put(transactionId, future);
|
transactions.put(transactionId, future);
|
||||||
|
|
||||||
final Runnable afterTick = () -> bot.session.send(new ServerboundBlockEntityTagQuery(transactionId, block));
|
final Runnable afterTick = () -> bot.session.send(new ServerboundBlockEntityTagQuery(transactionId, beforeBlock));
|
||||||
|
|
||||||
bot.executor.schedule(afterTick, 50, TimeUnit.MILLISECONDS);
|
bot.executor.schedule(afterTick, 50, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue