Localize variable.

This commit is contained in:
Duane 2016-07-04 11:36:29 -05:00
parent fcee06b6e1
commit f75e5fe6e4

View file

@ -77,8 +77,8 @@ local function firework()
--players[i]:set_sky(0xffffff, "plain", {}) --players[i]:set_sky(0xffffff, "plain", {})
players[i]:set_sky('#000000', 'skybox', {'fun_caves_firework_'..math.random(3)..'.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png'}) players[i]:set_sky('#000000', 'skybox', {'fun_caves_firework_'..math.random(3)..'.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png', 'fun_caves_blank.png'})
end end
minetest.sound_play("fireworks", {gain = 1, pos = pp, max_hear_distance = 2})
end end
minetest.sound_play("fireworks", {gain = 1, pos = pp, max_hear_distance = 2})
minetest.after(4, function() minetest.after(4, function()
for i = 1, #ps do for i = 1, #ps do
ps[i].p:set_sky(ps[i].sky.bgcolor, ps[i].sky.type, ps[i].sky.textures) ps[i].p:set_sky(ps[i].sky.bgcolor, ps[i].sky.type, ps[i].sky.textures)