0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Slightly refactor TriggerBot

This commit is contained in:
Alexander01998 2024-05-11 17:07:36 +02:00
parent f8427614c4
commit b4811fabd3

View File

@ -100,16 +100,16 @@ public final class TriggerBotHack extends Hack implements PostMotionListener
return;
if(MC.crosshairTarget == null
|| !(MC.crosshairTarget instanceof EntityHitResult))
|| !(MC.crosshairTarget instanceof EntityHitResult eResult))
return;
Entity target = ((EntityHitResult)MC.crosshairTarget).getEntity();
Entity target = eResult.getEntity();
if(!isCorrectEntity(target))
return;
WURST.getHax().autoSwordHack.setSlot(target);
WURST.getHax().criticalsHack.doCritical();
MC.interactionManager.attackEntity(player, target);
swingHand.swing(Hand.MAIN_HAND);
speed.resetTimer();