From 783fe7ad2e0220996f1b9d99b2d619d693d58a3e Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Tue, 23 Jul 2019 04:38:20 -0700 Subject: [PATCH] fix defaulting of "/npc sound" ambient --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index f096a9c93..bac668180 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -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); }