diff --git a/changelog.txt b/changelog.txt index 1628a08..7dc1e35 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ +next +---- +- uses "sounds" mod + + v1.1 ---- - added sound when hit @@ -7,6 +12,7 @@ v1.1 - added setting to customize spawn nodes - added simple_protection support + v1.0 ---- - forked & renamed from Rui's original "creeper" mod diff --git a/entity.lua b/entity.lua index 5a71631..e731f83 100644 --- a/entity.lua +++ b/entity.lua @@ -196,8 +196,8 @@ end local function expand(self) if self.expanding and self.visualx < 2 then - if self.hiss == false then - core.sound_play("sneeker_hiss", {object=self.object, gain=1.5, max_hear_distance=2*64}) + if self.hiss == false and sounds then + sounds.fuse:play(1, {object=self.object, gain=1.5, max_hear_distance=2*64}) end self.visualx = self.visualx+0.05 self.object:set_properties({ diff --git a/sounds/sneeker_hiss.ogg b/sounds/sneeker_hiss.ogg deleted file mode 100644 index 199f206..0000000 Binary files a/sounds/sneeker_hiss.ogg and /dev/null differ