]> git.lizzy.rs Git - Crafter.git/commitdiff
Update init.lua
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 4 Jul 2020 12:02:06 +0000 (08:02 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sat, 4 Jul 2020 12:02:06 +0000 (08:02 -0400)
mods/fireworks/init.lua

index b4e3567095682bb7fa05e6759333aa9eb0665ccd..d6795fd0c43f864f8775c3ed3aeb0768c8c92f5d 100644 (file)
@@ -25,7 +25,7 @@ local function fireworks_pop(pos)
             texture = "smoke.png^[colorize:"..color..":255",
         })
     end
-    minetest.sound_play("fireworks_pop",{pos=pos,pitch=math.random(80,100)/100,gain=6.0})
+    minetest.sound_play("fireworks_pop",{pos=pos,pitch=math.random(80,100)/100,gain=6.0,max_hear_distance = 128})
 end