diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-10-17 18:35:52 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-10-17 18:35:52 +0200 |
commit | d3e20f25657fe9ad3c37a3a8c925fff0c540ab81 (patch) | |
tree | fc8f9e169f121671374c305af4cc7a3eb15eac88 | |
parent | b6e4fd8f6828c6f77c767cee486c06a03becb30a (diff) | |
download | hangglider-d3e20f25657fe9ad3c37a3a8c925fff0c540ab81.tar.gz hangglider-d3e20f25657fe9ad3c37a3a8c925fff0c540ab81.tar.bz2 hangglider-d3e20f25657fe9ad3c37a3a8c925fff0c540ab81.zip |
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ hangglider.can_fly = function (pname, pos) return (minetest.check_player_privs(pname, {protection_bypass=true}) or wardzones.checkPlayerZoneAccess(pname, zone) or not zone["data"]["no_fly"]) end end - if hangglider.flak and areas then + if hangglider.flak and areas and not areas:canInteract(pos, pname) then for id, area in pairs(areas:getAreasAtPos(pos)) do if area.flak then return false |