From e7b3dff934ce0d7c06bcaa567232598319b46f7c Mon Sep 17 00:00:00 2001 From: DangerousMilk Date: Fri, 17 Oct 2025 00:00:40 +0200 Subject: [PATCH] Fixed flySound NullPointerException. --- src/main/java/com/hbm/entity/projectile/EntityMeteor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hbm/entity/projectile/EntityMeteor.java b/src/main/java/com/hbm/entity/projectile/EntityMeteor.java index 30d01b5d0..a49e356b1 100644 --- a/src/main/java/com/hbm/entity/projectile/EntityMeteor.java +++ b/src/main/java/com/hbm/entity/projectile/EntityMeteor.java @@ -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();