glider can now be opened anywhere; git push

This commit is contained in:
Piezo_ 2018-12-28 17:50:57 -08:00
parent 43a734a57b
commit c88921a81d

View File

@ -219,7 +219,7 @@ minetest.register_tool("hangglider:hangglider", {
end end
local pos = player:get_pos() local pos = player:get_pos()
local pname = player:get_player_name() local pname = player:get_player_name()
if minetest.get_node(pos).name == "air" and not hangglider.use[pname] then --Equip if not hangglider.use[pname] then --Equip
minetest.sound_play("bedsheet", {pos=pos, max_hear_distance = 8, gain = 1.0}) minetest.sound_play("bedsheet", {pos=pos, max_hear_distance = 8, gain = 1.0})
if HUD_Overlay then player:hud_change(hangglider.id[pname], "text", "glider_struts.png") end if HUD_Overlay then player:hud_change(hangglider.id[pname], "text", "glider_struts.png") end
local airbreak = false local airbreak = false