From 0536311f0e6536677661b987fdf180a3e5e1e2c1 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Fri, 6 Aug 2021 23:27:02 -0700 Subject: [PATCH] Call sound groups directly --- entity.lua | 2 +- tnt_function.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entity.lua b/entity.lua index e731f83..7959c33 100644 --- a/entity.lua +++ b/entity.lua @@ -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({ diff --git a/tnt_function.lua b/tnt_function.lua index 8cf3904..c84f8d9 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -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)