From 29c46054e2474390e61f31361032722c5a8cb091 Mon Sep 17 00:00:00 2001 From: zaoqi Date: Wed, 1 Jan 2020 13:00:10 +0800 Subject: [PATCH] fix typo --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 73ce39e..3e8bc98 100644 --- a/api.lua +++ b/api.lua @@ -355,11 +355,11 @@ function vehicles.object_drive(entity, dtime, def) elseif ctrl.up and not shoots2 and ctrl.aux1 and entity.boost then local new_x=dir.x*(speed*0.2)*math.log(vtimer+0.5)+8*dir.x local new_y=velo.y-gravity/2 - local new_z=dir.z*(speed*0.2)*math.log(vtimer+0.5)+8*dir.z} + local new_z=dir.z*(speed*0.2)*math.log(vtimer+0.5)+8*dir.z if is_watercraft then new_y = 0 end - entity.object:setvelocity({x=new_x,y=new_y,z=new_z) + entity.object:setvelocity({x=new_x,y=new_y,z=new_z}) if boost_effect ~= nil then local effect_pos = {x=pos.x-dir.x*2, y=pos.y, z=pos.z-dir.z*2} minetest.add_particlespawner(