From 46275a2cc826b6fcfaf5ca95cb6b1189cec5b0cd Mon Sep 17 00:00:00 2001 From: Kimapr Date: Wed, 25 Dec 2019 22:58:14 +0500 Subject: [PATCH] quick fix + better outlines --- nc_sky_isgen/init.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nc_sky_isgen/init.lua b/nc_sky_isgen/init.lua index a8ff541..5edefdb 100644 --- a/nc_sky_isgen/init.lua +++ b/nc_sky_isgen/init.lua @@ -160,7 +160,7 @@ local ignore_c = minetest.get_content_id("ignore") local function spawn_particle(x,y,z,player) minetest.add_particlespawner{ - amount = 30, + amount = 15, -- Number of particles spawned over the time period `time`. time = 60, @@ -171,12 +171,12 @@ local function spawn_particle(x,y,z,player) maxvel = {x=0.5, y=0.5, z=0.5}, minacc = {x=0, y=0, z=0}, maxacc = {x=0, y=0, z=0}, - minexptime = 2, - maxexptime = 3, - minsize = 5, - maxsize = 10, + minexptime = 0.2, + maxexptime = 1, + minsize = 10, + maxsize = 60, vertical = false, - texture = "nc_lux_gravel.png", + texture = "nc_stonework_stone.png", playername = player, glow = 14 @@ -207,9 +207,9 @@ local function spawn_particles(x,y,z,player) pos[ord3] = ma[ord3] end --print(dump(pos)) - if math.random(10)==1 then + --if math.random(10)==1 then spawn_particle(pos.x,pos.y,pos.z,player) - end + --end end end end @@ -504,8 +504,8 @@ minetest.register_chatcommand("reset",{ return end cooldowns[name] = utime + cooldown - local pl = players[name] - if pl then + local is = players[name] + if is then players[name] = nil table.insert(cells,{pos=is.pos,valid=is.valid}) end