aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java
index cc1edaf..dbde075 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinEntityArrow.java
@@ -1,6 +1,6 @@
package com.thatgravyboat.skyblockhud.mixins;
-import com.thatgravyboat.skyblockhud.tracker.KillTrackerHandler;
+import com.thatgravyboat.skyblockhud.api.KillTracking;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.projectile.EntityArrow;
@@ -13,14 +13,13 @@ import org.spongepowered.asm.mixin.injection.ModifyVariable;
@Mixin(EntityArrow.class)
public class MixinEntityArrow {
- //Disabled as kill tracker stuff not fully added yet.
@Shadow
public Entity shootingEntity;
@ModifyVariable(method = "onUpdate", at = @At(value = "STORE", ordinal = 1))
public MovingObjectPosition onUpdate(MovingObjectPosition position) {
if (position != null && position.entityHit != null && this.shootingEntity != null && this.shootingEntity.getUniqueID().equals(Minecraft.getMinecraft().thePlayer.getUniqueID())) {
- KillTrackerHandler.attackedEntities.add(position.entityHit.getUniqueID());
+ KillTracking.attackedEntities.add(position.entityHit.getUniqueID());
}
return position;
}