forked from RepoMirrors/kami-blue
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
435f3d4c29
|
@ -0,0 +1,18 @@
|
||||||
|
package me.zeroeightsix.kami.module.modules.movement;
|
||||||
|
|
||||||
|
import me.zeroeightsix.kami.module.Module;
|
||||||
|
import net.minecraft.potion.Potion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by 0x2E | PretendingToCode
|
||||||
|
*/
|
||||||
|
@Module.Info(name = "AntiLevitation", description = "Removes levitation potion effect", category = Module.Category.MOVEMENT)
|
||||||
|
public class AntiLevitation extends Module {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUpdate() {
|
||||||
|
if (mc.player.isPotionActive(Potion.getPotionFromResourceLocation("levitation"))){
|
||||||
|
mc.player.removeActivePotionEffect(Potion.getPotionFromResourceLocation("levitation"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue