mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-21 18:15:51 +01:00
fix defaulting of "/npc sound" ambient
This commit is contained in:
parent
b1fc53f5e8
commit
783fe7ad2e
@ -1732,7 +1732,7 @@ public class NPCCommands {
|
||||
npc.data().setPersistent(NPC.HURT_SOUND_METADATA, hurtSound);
|
||||
}
|
||||
if (ambientSound == null) {
|
||||
npc.data().remove(ambientSound);
|
||||
npc.data().remove(NPC.AMBIENT_SOUND_METADATA);
|
||||
} else {
|
||||
npc.data().setPersistent(NPC.AMBIENT_SOUND_METADATA, ambientSound);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user