mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Use HandleInputListener in KillauraHack
This commit is contained in:
parent
324e269bf4
commit
7aec736c1a
@ -25,7 +25,7 @@ import net.minecraft.util.math.Box;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.wurstclient.Category;
|
||||
import net.wurstclient.SearchTags;
|
||||
import net.wurstclient.events.PostMotionListener;
|
||||
import net.wurstclient.events.HandleInputListener;
|
||||
import net.wurstclient.events.RenderListener;
|
||||
import net.wurstclient.events.UpdateListener;
|
||||
import net.wurstclient.hack.Hack;
|
||||
@ -47,7 +47,7 @@ import net.wurstclient.util.RotationUtils;
|
||||
@SearchTags({"kill aura", "ForceField", "force field", "CrystalAura",
|
||||
"crystal aura", "AutoCrystal", "auto crystal"})
|
||||
public final class KillauraHack extends Hack
|
||||
implements UpdateListener, PostMotionListener, RenderListener
|
||||
implements UpdateListener, HandleInputListener, RenderListener
|
||||
{
|
||||
private final SliderSetting range = new SliderSetting("Range",
|
||||
"Determines how far Killaura will reach to attack entities.\n"
|
||||
@ -124,7 +124,7 @@ public final class KillauraHack extends Hack
|
||||
|
||||
speed.resetTimer();
|
||||
EVENTS.add(UpdateListener.class, this);
|
||||
EVENTS.add(PostMotionListener.class, this);
|
||||
EVENTS.add(HandleInputListener.class, this);
|
||||
EVENTS.add(RenderListener.class, this);
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ public final class KillauraHack extends Hack
|
||||
protected void onDisable()
|
||||
{
|
||||
EVENTS.remove(UpdateListener.class, this);
|
||||
EVENTS.remove(PostMotionListener.class, this);
|
||||
EVENTS.remove(HandleInputListener.class, this);
|
||||
EVENTS.remove(RenderListener.class, this);
|
||||
|
||||
target = null;
|
||||
@ -177,7 +177,7 @@ public final class KillauraHack extends Hack
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPostMotion()
|
||||
public void onHandleInput()
|
||||
{
|
||||
if(target == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user