]> git.lizzy.rs Git - hangglider.git/commitdiff
glider can now be opened anywhere; git push
authorPiezo_ <orderofthefourthwall@gmail.com>
Sat, 29 Dec 2018 01:50:57 +0000 (17:50 -0800)
committerPiezo_ <orderofthefourthwall@gmail.com>
Sat, 29 Dec 2018 01:50:57 +0000 (17:50 -0800)
init.lua

index aa92f179eff273611b276aaf9643976cdbd2f71c..876b4f5f39258e1e985fa202350e9070b2c6380a 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -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