diff --git a/build-number.txt b/build-number.txt index 111ab202..06f55fb6 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -2948 \ No newline at end of file +2949 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java index ca267b18..1393f6e4 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java @@ -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 () {