File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/wtf/nebula/impl/module/movement Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 )) {
You can’t perform that action at this time.
0 commit comments