Skip to content

Commit 007e03b

Browse files
committed
fix: jesus shit
1 parent 521f693 commit 007e03b

File tree

1 file changed

+5
-2
lines changed
  • src/main/java/wtf/nebula/impl/module/movement

1 file changed

+5
-2
lines changed

src/main/java/wtf/nebula/impl/module/movement/Jesus.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void onPacketSend(PacketEvent.Send event) {
4848
Packet10Flying packet = event.getPacket();
4949

5050
// prevent phase checks
51-
if (isAboveLiquid()) {
51+
if (isAboveLiquid() && overLiquidTicks >= 5) {
5252

5353
// spoof ground state
5454
packet.onGround = true;
@@ -80,7 +80,10 @@ private boolean isAboveLiquid() {
8080
return false;
8181
}
8282

83-
Vec3 pos = Vec3.createVectorHelper(mc.thePlayer.posX, mc.thePlayer.boundingBox.minY - 1.0, mc.thePlayer.posZ);
83+
Vec3 pos = Vec3.createVectorHelper(
84+
Math.floor(mc.thePlayer.posX),
85+
mc.thePlayer.boundingBox.minY - 1.0,
86+
Math.floor(mc.thePlayer.posZ));
8487

8588
Block block = BlockUtil.getBlockFromVec(pos);
8689
if (!lava.getValue() && (block == Block.lavaMoving || block == Block.lavaStill)) {

0 commit comments

Comments
 (0)