diff --git a/entity.lua b/entity.lua index 3d93105..5a71631 100644 --- a/entity.lua +++ b/entity.lua @@ -216,7 +216,6 @@ end local function explode(self, pos) self.object:remove() sneeker.boom(pos, self.powered) - core.sound_play("sneeker_explode", {object=self.object, gain=sneeker.boom_gain, max_hear_distance=2*64}) end --[[ diff --git a/sounds/sneeker_explode.ogg b/sounds/sneeker_explode.ogg deleted file mode 100644 index a414ea0..0000000 Binary files a/sounds/sneeker_explode.ogg and /dev/null differ diff --git a/tnt_function.lua b/tnt_function.lua index be6b244..8cf3904 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -307,7 +307,9 @@ function sneeker.boom(pos, large) if large then radius = large_radius end - core.sound_play("sneeker_explode", {pos=pos, gain=1.5, max_hear_distance=2*64}) + if sounds then + sounds.explosion:play(1, {pos=pos, gain=sneeker.boom_gain, max_hear_distance=2*64}) + end core.set_node(pos, {name="tnt:boom"}) core.get_node_timer(pos):start(0.5) local drops = explode(pos, radius)