mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fixed flySound NullPointerException.
This commit is contained in:
parent
51b1f3e46d
commit
e7b3dff934
@ -93,7 +93,7 @@ public class EntityMeteor extends Entity {
|
||||
(new Meteorite()).generate(worldObj, rand, (int) Math.round(this.posX - 0.5D), (int) Math.round(this.posY - 0.5D), (int) Math.round(this.posZ - 0.5D), safe, true, true);
|
||||
|
||||
// Sound
|
||||
this.audioFly.stopSound();
|
||||
if(this.audioFly != null) this.audioFly.stopSound();
|
||||
this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "hbm:entity.oldExplosion", 10000.0F, 0.5F + this.rand.nextFloat() * 0.1F);
|
||||
|
||||
this.setDead();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user