+1-1
This commit is contained in:
parent
3f47b72d40
commit
91fec828ad
1 changed files with 1 additions and 3 deletions
|
@ -199,9 +199,7 @@ public class PlayerEventHandler {
|
||||||
public static void onAttackEntity(AttackEntityEvent event) {
|
public static void onAttackEntity(AttackEntityEvent event) {
|
||||||
var target = event.getTarget();
|
var target = event.getTarget();
|
||||||
if (target instanceof VehicleEntity vehicle) {
|
if (target instanceof VehicleEntity vehicle) {
|
||||||
Vec3 position;
|
Vec3 position = TraceTool.playerFindLookingPos(event.getEntity(), vehicle, event.getEntity().entityInteractionRange());
|
||||||
|
|
||||||
position = TraceTool.playerFindLookingPos(event.getEntity(), vehicle, event.getEntity().entityInteractionRange());
|
|
||||||
|
|
||||||
if (position != null) {
|
if (position != null) {
|
||||||
if (vehicle.shouldSendHitSounds()) {
|
if (vehicle.shouldSendHitSounds()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue