mirror of https://github.com/kami-blue/client
update readme
This commit is contained in:
parent
34a7f42070
commit
0cc7c55268
|
@ -0,0 +1,25 @@
|
|||
package me.zeroeightsix.kami.module.modules.player;
|
||||
|
||||
import me.zero.alpine.listener.EventHandler;
|
||||
import me.zero.alpine.listener.Listener;
|
||||
import me.zeroeightsix.kami.event.events.PacketEvent;
|
||||
import me.zeroeightsix.kami.module.Module;
|
||||
import me.zeroeightsix.kami.module.Module.Info;
|
||||
import net.minecraft.init.Items;
|
||||
|
||||
@Module.Info(name = "FastExp", category = Module.Category.PLAYER, description = "Removes the delay when throwing Exp bottles")
|
||||
public class FastExp
|
||||
extends Module
|
||||
{
|
||||
@EventHandler
|
||||
private Listener<PacketEvent.Receive> receiveListener = new Listener<>(event ->
|
||||
{
|
||||
if (mc.player != null && (mc.player.getHeldItemMainhand().getItem() == Items.EXPERIENCE_BOTTLE || mc.player.getHeldItemOffhand().getItem() == Items.EXPERIENCE_BOTTLE)) {
|
||||
|
||||
mc.rightClickDelayTimer = 0;
|
||||
}
|
||||
else {
|
||||
mc.player.getHeldItemMainhand().getItem()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue