mirror of https://github.com/kami-blue/client
work on nofall, update fastuse format
This commit is contained in:
parent
906c2b43af
commit
5898317c11
|
@ -9,11 +9,11 @@ import net.minecraft.init.Items;
|
|||
|
||||
/**
|
||||
* Created by S-B99 on 23/10/2019
|
||||
* @author S-B99
|
||||
*/
|
||||
@Module.Info(category = Module.Category.PLAYER, description = "Removes delay when holding right click", name = "FastUse")
|
||||
public class Fastuse
|
||||
extends Module
|
||||
{
|
||||
public class Fastuse extends Module {
|
||||
|
||||
@EventHandler
|
||||
private Listener<PacketEvent.Receive> receiveListener = new Listener<>(event ->
|
||||
{
|
||||
|
|
|
@ -13,6 +13,8 @@ import net.minecraft.util.EnumHand;
|
|||
import net.minecraft.util.math.RayTraceResult;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
|
||||
//import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* Created by 086 on 19/11/2017.
|
||||
* Updated by S-B99 on 24/10/2019
|
||||
|
@ -54,21 +56,32 @@ public class NoFall extends Module {
|
|||
|
||||
mc.player.rotationPitch = 90;
|
||||
mc.playerController.processRightClick(mc.player, mc.world, hand);
|
||||
last = System.currentTimeMillis();
|
||||
|
||||
//try {
|
||||
// this is where i want to run the above 2 lines again after 300 milliseconds
|
||||
|
||||
// this was tried individually
|
||||
// result: forgot but it was either a crash or lag
|
||||
//TimeUnit.MILLISECONDS.sleep(400);
|
||||
|
||||
// result: lag thread
|
||||
long lastNanoTime = System.nanoTime();
|
||||
long nowTime = System.nanoTime();
|
||||
while(nowTime/1000000 - lastNanoTime /1000000 < 300 )
|
||||
{
|
||||
nowTime = System.nanoTime();
|
||||
System.out.println("KAMI: Tried to pick up bucket");
|
||||
mc.player.rotationPitch = 90;
|
||||
mc.playerController.processRightClick(mc.player, mc.world, hand);
|
||||
|
||||
}
|
||||
|
||||
// this was tried individually
|
||||
// result: freeze
|
||||
//Thread.sleep(300);
|
||||
//} catch (InterruptedException e) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
//}
|
||||
|
||||
//try {
|
||||
// this was tried individually
|
||||
// result: clean exit
|
||||
//wait(300);
|
||||
//} catch (InterruptedException e) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
//}
|
||||
|
||||
//mc.player.rotationPitch = 90;
|
||||
//mc.playerController.processRightClick(mc.player, mc.world, hand);
|
||||
|
|
Loading…
Reference in New Issue