Fix rotor bug

This commit is contained in:
Joachim Stolberg 2021-05-18 21:32:45 +02:00
parent 85965d75ef
commit d1fb7cfdac

View File

@ -39,7 +39,7 @@ local Face2Dir = {[0]=
} }
local function pos_and_yaw(pos, param2) local function pos_and_yaw(pos, param2)
local dir = Face2Dir[param2] local dir = Face2Dir[param2] or 0
local yaw = minetest.dir_to_yaw(dir) local yaw = minetest.dir_to_yaw(dir)
dir = vector.multiply(dir, 1.1) dir = vector.multiply(dir, 1.1)
pos = vector.add(pos, dir) pos = vector.add(pos, dir)