From 2243ee547713810c043393259d81c2a904d58158 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 18 Aug 2017 23:23:07 +0200 Subject: [PATCH] Fix deprecated vel and acc arguments of particles --- mods/ENTITIES/mobs_mc/2_throwing.lua | 4 ++-- mods/PLAYER/mcl_sprint/init.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/2_throwing.lua b/mods/ENTITIES/mobs_mc/2_throwing.lua index 81da277407..be9f83c901 100644 --- a/mods/ENTITIES/mobs_mc/2_throwing.lua +++ b/mods/ENTITIES/mobs_mc/2_throwing.lua @@ -57,8 +57,8 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) minetest.add_particle({ pos = pos, - vel = {x=0, y=0, z=0}, - acc = {x=0, y=0, z=0}, + velocity = {x=0, y=0, z=0}, + acceleration = {x=0, y=0, z=0}, expirationtime = .3, size = 1, collisiondetection = false, diff --git a/mods/PLAYER/mcl_sprint/init.lua b/mods/PLAYER/mcl_sprint/init.lua index c4fe3a0ac3..7f1559eb1d 100644 --- a/mods/PLAYER/mcl_sprint/init.lua +++ b/mods/PLAYER/mcl_sprint/init.lua @@ -75,8 +75,8 @@ minetest.register_globalstep(function(dtime) for i=1, numParticles, 1 do minetest.add_particle({ pos = {x=playerPos["x"]+math.random(-1,1)*math.random()/2,y=playerPos["y"]+0.1,z=playerPos["z"]+math.random(-1,1)*math.random()/2}, - vel = {x=0, y=5, z=0}, - acc = {x=0, y=-13, z=0}, + velocity = {x=0, y=5, z=0}, + acceleration = {x=0, y=-13, z=0}, expirationtime = math.random(), size = math.random()+0.5, collisiondetection = true,