fix non declared variable
This commit is contained in:
parent
32ff3b0c28
commit
e93f33037c
@ -70,7 +70,7 @@ minetest.register_entity("airutils:wind_indicator",{
|
||||
on_step = function(self,dtime,colinfo)
|
||||
self.object:set_pos(self._pos)
|
||||
|
||||
local wind = airutils.get_wind(pos, 1.0)
|
||||
local wind = airutils.get_wind(self._pos, 1.0)
|
||||
local wind_yaw = minetest.dir_to_yaw(wind)
|
||||
self.object:set_bone_position("ajuste", {x=0,y=42,z=0}, {x=0,y=0,z=90})
|
||||
self.object:set_bone_position("b_a", {x=0,y=0,z=0}, {x=math.deg(wind_yaw)-90,y=0,z=0})
|
||||
|
Loading…
x
Reference in New Issue
Block a user