Toggle for Wither's spawn sound

This commit is contained in:
12emin34
2025-01-12 11:58:26 -08:00
committed by granny
parent 403171643f
commit e88d5fe32e
3 changed files with 11 additions and 39 deletions

View File

@@ -42,6 +42,15 @@
}
@Override
@@ -269,7 +_,7 @@
level.explode(this, this.getX(), this.getEyeY(), this.getZ(), event.getRadius(), event.getFire(), Level.ExplosionInteraction.MOB);
}
// CraftBukkit end
- if (!this.isSilent()) {
+ if (!this.isSilent() && level.purpurConfig.witherPlaySpawnSound) { // Purpur - Toggle for Wither's spawn sound
// CraftBukkit start - Use relative location for far away sounds
// level.globalLevelEvent(1023, this.blockPosition(), 0);
int viewDistance = level.getCraftServer().getViewDistance() * 16;
@@ -376,8 +_,10 @@
}
}