forked from minetest-mods/nether
Fixes old bug id #21
This commit is contained in:
parent
7a0e52da46
commit
0b6925f4b1
4
init.lua
4
init.lua
@ -268,7 +268,7 @@ minetest.register_abm({
|
|||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
minetest.add_particlespawner(
|
minetest.add_particlespawner({
|
||||||
32, --amount
|
32, --amount
|
||||||
4, --time
|
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}, --minpos
|
||||||
@ -283,7 +283,7 @@ minetest.register_abm({
|
|||||||
2, --maxsize
|
2, --maxsize
|
||||||
false, --collisiondetection
|
false, --collisiondetection
|
||||||
"nether_particle.png" --texture
|
"nether_particle.png" --texture
|
||||||
)
|
})
|
||||||
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
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user