summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-03-21 19:44:05 -0400
committerShadowNinja <shadowninja@minetest.net>2016-03-21 21:27:26 -0400
commit252bdde86fd10827e047ce730f188c3dce1d9a8c (patch)
tree2786f5ee89cd97ae69a10ded94ea2c54d2bf4165
parent237126d3dbac0075b4ff83d47dd5141f3de3af5b (diff)
Update mining laser particle API usage
-rw-r--r--technic/tools/mining_lasers.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/technic/tools/mining_lasers.lua b/technic/tools/mining_lasers.lua
index 802b9da..2020c4c 100644
--- a/technic/tools/mining_lasers.lua
+++ b/technic/tools/mining_lasers.lua
@@ -38,8 +38,8 @@ local function laser_node(pos, node, player)
minetest.remove_node(pos)
minetest.add_particle({
pos = pos,
- vel = {x=0, y=2, z=0},
- acc = {x=0, y=-1, z=0},
+ velocity = {x=0, y=2, z=0},
+ acceleration = {x=0, y=-1, z=0},
expirationtime = 1.5,
size = 6 + math.random() * 2,
texture = "smoke_puff.png^[transform" .. math.random(0, 7),
@@ -64,8 +64,8 @@ local function laser_shoot(player, range, particle_texture, sound)
start_pos.y = start_pos.y + 1.6
minetest.add_particle({
pos = startpos,
- vel = dir,
- acc = vector.multiply(dir, 50),
+ velocity = dir,
+ acceleration = vector.multiply(dir, 50),
expirationtime = range / 11,
size = 1,
texture = particle_texture .. "^[transform" .. math.random(0, 7),