Call sound groups directly

This commit is contained in:
Jordan Irwin 2021-08-06 23:27:02 -07:00
parent b6561dc8f4
commit 0536311f0e
2 changed files with 2 additions and 2 deletions

@ -197,7 +197,7 @@ end
local function expand(self)
if self.expanding and self.visualx < 2 then
if self.hiss == false and sounds then
sounds.fuse:play(1, {object=self.object, gain=1.5, max_hear_distance=2*64})
sounds.fuse(1, {object=self.object, gain=1.5, max_hear_distance=2*64})
end
self.visualx = self.visualx+0.05
self.object:set_properties({

@ -308,7 +308,7 @@ function sneeker.boom(pos, large)
radius = large_radius
end
if sounds then
sounds.explosion:play(1, {pos=pos, gain=sneeker.boom_gain, max_hear_distance=2*64})
sounds.explosion(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)