mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +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);
|
npc.data().setPersistent(NPC.HURT_SOUND_METADATA, hurtSound);
|
||||||
}
|
}
|
||||||
if (ambientSound == null) {
|
if (ambientSound == null) {
|
||||||
npc.data().remove(ambientSound);
|
npc.data().remove(NPC.AMBIENT_SOUND_METADATA);
|
||||||
} else {
|
} else {
|
||||||
npc.data().setPersistent(NPC.AMBIENT_SOUND_METADATA, ambientSound);
|
npc.data().setPersistent(NPC.AMBIENT_SOUND_METADATA, ambientSound);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user