调整载具开火音效
This commit is contained in:
parent
206eff0e50
commit
709d4b64ea
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue