]> git.lizzy.rs Git - hangglider.git/commitdiff
That didn't work, how about now?
authorPiezo_ <orderofthefourthwall@gmail.com>
Mon, 10 Dec 2018 01:58:20 +0000 (17:58 -0800)
committerPiezo_ <orderofthefourthwall@gmail.com>
Mon, 10 Dec 2018 01:58:20 +0000 (17:58 -0800)
init.lua

index 0030185a1136faf15f57972c27229b77193761c8..3fed91e587d50019a85e8cfbe8412b8a46de6afb 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -121,7 +121,7 @@ minetest.register_entity("hangglider:glider", {
                                if hangglider.use[pname] then
                                        local mrn_name = minetest.registered_nodes[minetest.get_node(vector.new(pos.x, pos.y-0.5, pos.z)).name]
                                        if mrn_name then
-                                               if not (mrn_name.walkable or mrn_name.liquidtype) then
+                                               if not (mrn_name.walkable or mrn_name.liquidtype ~= "none") then
                                                        canExist = true
                                                        step_v = player:get_player_velocity().y
                                                        if step_v < 0 and step_v > -3 then