Fix portal particle spawners

Issue introduced in 0b6925f4b1. Fix tested in 4.17.1 and 5.1-dev
This commit is contained in:
Treer 2019-06-26 19:18:03 +10:00 committed by sofar
parent 2d94d74d97
commit bf145d4c11
1 changed files with 14 additions and 14 deletions

View File

@ -269,20 +269,20 @@ minetest.register_abm({
chance = 2, chance = 2,
action = function(pos, node) action = function(pos, node)
minetest.add_particlespawner({ minetest.add_particlespawner({
32, --amount amount = 32,
4, --time time = 4,
{x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25}, --minpos minpos = {x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25},
{x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25}, --maxpos maxpos = {x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25},
{x = -0.8, y = -0.8, z = -0.8}, --minvel minvel = {x = -0.8, y = -0.8, z = -0.8},
{x = 0.8, y = 0.8, z = 0.8}, --maxvel maxvel = {x = 0.8, y = 0.8, z = 0.8},
{x = 0, y = 0, z = 0}, --minacc minacc = {x = 0, y = 0, z = 0},
{x = 0, y = 0, z = 0}, --maxacc maxacc = {x = 0, y = 0, z = 0},
0.5, --minexptime minexptime = 0.5,
1, --maxexptime maxexptime = 1,
1, --minsize minsize = 1,
2, --maxsize maxsize = 2,
false, --collisiondetection collisiondetection = false,
"nether_particle.png" --texture texture = "nether_particle.png"
}) })
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
if obj:is_player() then if obj:is_player() then