mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
Fix crash when creating Nether portal
This commit is contained in:
parent
8ff69dda0c
commit
e64518dd24
@ -374,22 +374,22 @@ 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
|
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,
|
||||||
"mcl_particles_teleport.png" --texture
|
texture = "mcl_particles_teleport.png",
|
||||||
)
|
})
|
||||||
for _,obj in ipairs(minetest.get_objects_inside_radius(pos,1)) do --maikerumine added for objects to travel
|
for _,obj in ipairs(minetest.get_objects_inside_radius(pos,1)) do --maikerumine added for objects to travel
|
||||||
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
||||||
if obj:is_player() or lua_entity then
|
if obj:is_player() or lua_entity then
|
||||||
|
Loading…
Reference in New Issue
Block a user