Skip to content

Commit

Permalink
Fixing issue where wrong target will be used
Browse files Browse the repository at this point in the history
  • Loading branch information
funkemunky committed Aug 15, 2022
1 parent 9794196 commit 2a27ea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void processClient(ObjectData data, Object object, String type,
if (data.target == null && packet.getEntity() instanceof Player)
data.targetData = Kauri.INSTANCE.dataManager.getData((Player) packet.getEntity());
data.target = (LivingEntity) packet.getEntity();
}
} else data.target = null;
data.predictionService.hit = true;
data.playerInfo.usingItem = false;
}
Expand Down

0 comments on commit 2a27ea3

Please sign in to comment.