From 2331a9fba88ca27d084700248c0beb20dfa3962c Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 21 May 2021 17:12:58 +0200 Subject: [PATCH] Fix rotor bug --- wind_turbine/rotor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wind_turbine/rotor.lua b/wind_turbine/rotor.lua index 4ea8a4a..80bae6f 100644 --- a/wind_turbine/rotor.lua +++ b/wind_turbine/rotor.lua @@ -39,7 +39,7 @@ local Face2Dir = {[0]= } local function pos_and_yaw(pos, param2) - local dir = Face2Dir[param2] or 0 + local dir = Face2Dir[param2] or Face2Dir[0] local yaw = minetest.dir_to_yaw(dir) dir = vector.multiply(dir, 1.1) pos = vector.add(pos, dir)