Skip to content

Commit

Permalink
fix defaulting of "/npc sound" ambient
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 23, 2019
1 parent b1fc53f commit 783fe7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ public void sound(CommandContext args, CommandSender sender, NPC npc) throws Com
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);
}
Expand Down

0 comments on commit 783fe7a

Please sign in to comment.