make BlockIn sort of work when standing on a slab (#245)

This commit is contained in:
etianl
2023-04-08 01:06:43 -07:00
committed by GitHub
parent f749e5c7d9
commit 5ee9db0987

View File

@@ -72,6 +72,8 @@ public class BlockIn extends Module {
@EventHandler
private void onPreTick(TickEvent.Pre event) {
if (mc.player.isOnGround() && mc.player.getY()>Math.floor(mc.player.getY()+0.2)) mc.options.sneakKey.setPressed(true);
if (return_ && mc.options.sneakKey.isPressed()) mc.options.sneakKey.setPressed(false);
if (center.get()) {
if (!onlyOnGround.get()) {
mc.player.setVelocity(0,0,0);