Update 'init.lua'

This commit is contained in:
Piezo_ 2018-11-25 23:40:26 +00:00
parent 9e73a0b12b
commit cc2cbd4973

View File

@ -217,7 +217,7 @@ minetest.register_tool("hangglider:hangglider", {
minetest.sound_play("bedsheet", {pos=pos, max_hear_distance = 8, gain = 1.0})
if HUD_Overlay then user:hud_change(hangglider.id[pname], "text", "glider_struts.png") end
local vel = user:get_player_velocity().y
if vel < -2 then -- engage mid-air, falling fast, so stop but ramp velocity more quickly
if vel < -0.8 then -- engage mid-air, falling fast, so stop but ramp velocity more quickly
hangglider.airbreak[pname] = true
user:set_physics_override({
gravity = 1,