Skip to content

Deprecated add_particlespawner #21

@ClaudiusMinimus

Description

@ClaudiusMinimus

The default code was kept throwing the error:
WARNING[Server]: Deprecated add_particlespawner call with individual parameters instead of definition

On lines 246 & 261 I added open and closing braces {...} as per:
http://dev.minetest.net/minetest.add_particlespawner

    minetest.add_particlespawner({
        32, --amount
        4, --time
        {x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25}, --minpos
        {x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25}, --maxpos
        {x = -0.8, y = -0.8, z = -0.8}, --minvel
        {x = 0.8, y = 0.8, z = 0.8}, --maxvel
        {x = 0, y = 0, z = 0}, --minacc
        {x = 0, y = 0, z = 0}, --maxacc
        0.5, --minexptime
        1, --maxexptime
        1, --minsize
        2, --maxsize
        false, --collisiondetection
        "nether_particle.png" --texture
    })

The above changes fixed the errors
Thanks for all you do for the MT world!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions