mirror of https://github.com/kami-blue/client
update fastplace to take values
This commit is contained in:
parent
3836efc82a
commit
374664e8ed
|
@ -1,15 +1,20 @@
|
|||
package me.zeroeightsix.kami.module.modules.player;
|
||||
|
||||
import me.zeroeightsix.kami.module.Module;
|
||||
import me.zeroeightsix.kami.setting.Setting;
|
||||
import me.zeroeightsix.kami.setting.Settings;
|
||||
|
||||
/**
|
||||
* @author 086
|
||||
* Updated by S-B99 on 25/10/19
|
||||
*/
|
||||
@Module.Info(name = "Fastplace", category = Module.Category.PLAYER, description = "Nullifies block place delay")
|
||||
public class Fastplace extends Module {
|
||||
|
||||
private Setting<Integer> delay = register(Settings.i("Delay", 0));
|
||||
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
mc.rightClickDelayTimer = 0;
|
||||
mc.rightClickDelayTimer = delay.getValue();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue