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
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ minetest.register_tool("hangglider:hangglider", {
end
local pos = player:get_pos()
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})
if HUD_Overlay then player:hud_change(hangglider.id[pname], "text", "glider_struts.png") end
local airbreak = false