This commit is contained in:
Atsuishio 2025-06-25 13:25:56 +08:00 committed by Light_Quanta
parent 3f47b72d40
commit 91fec828ad
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -199,9 +199,7 @@ public class PlayerEventHandler {
public static void onAttackEntity(AttackEntityEvent event) {
var target = event.getTarget();
if (target instanceof VehicleEntity vehicle) {
Vec3 position;
position = TraceTool.playerFindLookingPos(event.getEntity(), vehicle, event.getEntity().entityInteractionRange());
Vec3 position = TraceTool.playerFindLookingPos(event.getEntity(), vehicle, event.getEntity().entityInteractionRange());
if (position != null) {
if (vehicle.shouldSendHitSounds()) {