fix defaulting of "/npc sound" ambient

This commit is contained in:
Alex 'mcmonkey' Goodwin 2019-07-23 04:38:20 -07:00
parent b1fc53f5e8
commit 783fe7ad2e
No known key found for this signature in database
GPG Key ID: 2F0F11928478A6F5

View File

@ -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);
}