diff options
author | Piezo_ <orderofthefourthwall@gmail.com> | 2018-12-09 17:52:41 -0800 |
---|---|---|
committer | Piezo_ <orderofthefourthwall@gmail.com> | 2018-12-09 17:52:41 -0800 |
commit | 62b8366905b314af5442de99896d94e1eb41b9e8 (patch) | |
tree | 1fdf2664e5464eb47583f182dc169a6db051ffdf | |
parent | 61b870b9af4daa1c900d7bb936de5121ab8d005a (diff) | |
download | hangglider-62b8366905b314af5442de99896d94e1eb41b9e8.tar.gz hangglider-62b8366905b314af5442de99896d94e1eb41b9e8.tar.bz2 hangglider-62b8366905b314af5442de99896d94e1eb41b9e8.zip |
simplified liquid check
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -37,7 +37,8 @@ -- Improved gravity adjustment function. -- Changed airbreaking process -- Removed airbreak penalty, as any 'advantage' seems minimal after new adjustments - +-- Removed airbreak until minetest devs are smart enough to implement better serverside players. +-- Simplified liquid check. local HUD_Overlay = true --show glider struts as overlay on HUD local debug = false --show debug info in top-center of hud @@ -120,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.drowning and mrn_name.drowning == 1)) then + if not (mrn_name.walkable or mrn_name.liquidtype) then canExist = true step_v = player:get_player_velocity().y if step_v < 0 and step_v > -3 then |