mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
mining lasers: fix particle expirationtime
This commit is contained in:
parent
e03751b79a
commit
ebe2ac4585
|
@ -122,7 +122,7 @@ local function laser_shoot(player, range, particle_texture, sound)
|
||||||
pos = start_pos,
|
pos = start_pos,
|
||||||
velocity = dir,
|
velocity = dir,
|
||||||
acceleration = vector.multiply(dir, 50),
|
acceleration = vector.multiply(dir, 50),
|
||||||
expirationtime = range / 11,
|
expirationtime = (math.sqrt(1+100*(range+0.4))-1)/50,
|
||||||
size = 1,
|
size = 1,
|
||||||
texture = particle_texture .. "^[transform" .. math.random(0, 7),
|
texture = particle_texture .. "^[transform" .. math.random(0, 7),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user