0
0
Fork 0

Fix lightning being heard globally

This commit is contained in:
Wuzzy 2020-12-03 13:03:27 +01:00
parent 2638d91785
commit 30b915b5c2
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ lightning.strike = function(pos)
glow = minetest.LIGHT_MAX,
})
minetest.sound_play({ pos = pos, name = "lightning_thunder", gain = 10, max_hear_distance = 500 }, true)
minetest.sound_play({ name = "lightning_thunder", gain = 10 }, { pos = pos, max_hear_distance = 500 }, true)
-- damage nearby objects, transform mobs
local objs = minetest.get_objects_inside_radius(pos2, 3.5)