feat: unset slot after place block core ran

This commit is contained in:
ChomeNS
2025-04-29 19:20:26 +07:00
parent 5c87e95c30
commit 572f4c2119
2 changed files with 10 additions and 1 deletions

View File

@@ -326,6 +326,15 @@ public class CorePlugin implements Listener {
);
session.send(new ServerboundPlayerActionPacket(PlayerAction.START_DIGGING, temporaryBlockPosition, Direction.NORTH, 0));
session.send(new ServerboundUseItemOnPacket(temporaryBlockPosition, Direction.UP, Hand.MAIN_HAND, 0.5f, 0.5f, 0.5f, false, false, 1));
if (!bot.options.useCorePlaceBlock) {
bot.executor.schedule(() -> session.send(
new ServerboundSetCreativeModeSlotPacket(
(short) 36,
null
)
), 50 * 2, TimeUnit.MILLISECONDS);
}
}
private void resizeTick () {