From e2d8721a525ca9085a74e1dead44823b4cd1881d Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 13 Feb 2020 14:01:30 +0100 Subject: [PATCH] check areas only for flak fixes https://github.com/pandorabox-io/pandorabox.io/issues/377 --- init.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 97f463a..9a0e4f9 100644 --- a/init.lua +++ b/init.lua @@ -152,12 +152,10 @@ 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 areas and minetest.is_protected(vector.round(pos), pname) then - if hangglider.flak then - for id, area in pairs(areas:getAreasAtPos(pos)) do - if area.flak then - return false - end + if areas and hangglider.flak then + for id, area in pairs(areas:getAreasAtPos(pos)) do + if area.flak then + return false end end end