diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java index 08dc6cd..f335d53 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java @@ -142,6 +142,8 @@ public class CorePlugin extends PositionPlugin.Listener { } public CompletableFuture runTracked (String command) { + final Vector3i beforeBlock = block.clone(); + run(command); if (!bot.options.useCore) return null; @@ -152,7 +154,7 @@ public class CorePlugin extends PositionPlugin.Listener { final CompletableFuture future = new CompletableFuture<>(); 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);