调整载具开火音效

This commit is contained in:
17146 2025-05-24 17:17:48 +08:00 committed by Light_Quanta
parent 206eff0e50
commit 709d4b64ea
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -100,7 +100,10 @@ public abstract class VehicleFireSoundInstance extends AbstractTickableSoundInst
@Override
protected boolean canPlay(MobileVehicleEntity mobileVehicle) {
return true;
if (mobileVehicle instanceof Hpj11Entity hpj11Entity) {
return hpj11Entity.isFiring();
}
return false;
}
@Override