summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiezo_ <orderofthefourthwall@gmail.com>2018-12-28 17:50:57 -0800
committerPiezo_ <orderofthefourthwall@gmail.com>2018-12-28 17:50:57 -0800
commitc88921a81d49f5c8e236829056063ee1bf9a029b (patch)
tree408a48e64bf6bac191ae62713a6f019e72441e11
parent43a734a57b0d2149e874de9c3d23331d8978b648 (diff)
downloadhangglider-c88921a81d49f5c8e236829056063ee1bf9a029b.tar.gz
hangglider-c88921a81d49f5c8e236829056063ee1bf9a029b.tar.bz2
hangglider-c88921a81d49f5c8e236829056063ee1bf9a029b.zip
glider can now be opened anywhere; git push
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index aa92f17..876b4f5 100644
--- 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