mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-18 13:21:45 +01:00
Further fix to /npc sound
This commit is contained in:
parent
3cef996a24
commit
b3589e40f9
@ -1747,8 +1747,9 @@ public class NPCCommands {
|
|||||||
if (deathSound != null && deathSound.isEmpty()) {
|
if (deathSound != null && deathSound.isEmpty()) {
|
||||||
deathSound = "none";
|
deathSound = "none";
|
||||||
}
|
}
|
||||||
if (!StringUtils.isNullOrEmpty(ambientSound) || !StringUtils.isNullOrEmpty(deathSound)
|
if ((!StringUtils.isNullOrEmpty(ambientSound) && !ambientSound.equals("none"))
|
||||||
|| !StringUtils.isNullOrEmpty(hurtSound)) {
|
|| (!StringUtils.isNullOrEmpty(deathSound) && !deathSound.equals("none"))
|
||||||
|
|| (!StringUtils.isNullOrEmpty(hurtSound) && !hurtSound.equals("none"))) {
|
||||||
npc.data().setPersistent(NPC.SILENT_METADATA, false);
|
npc.data().setPersistent(NPC.SILENT_METADATA, false);
|
||||||
}
|
}
|
||||||
Messaging.sendTr(sender, Messages.SOUND_SET, npc.getName(), ambientSound, hurtSound, deathSound);
|
Messaging.sendTr(sender, Messages.SOUND_SET, npc.getName(), ambientSound, hurtSound, deathSound);
|
||||||
|
Loading…
Reference in New Issue
Block a user