From 3d530e0c2573dd9bf1a9299e95ed007fa131647a Mon Sep 17 00:00:00 2001 From: luk3yx Date: Thu, 4 Jul 2019 05:10:39 +1200 Subject: [PATCH] intersects_protection(): Fix compatibility code --- mods/default/legacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/legacy.lua b/mods/default/legacy.lua index 935d857a..a2d812d4 100644 --- a/mods/default/legacy.lua +++ b/mods/default/legacy.lua @@ -45,5 +45,5 @@ default.register_chest = default.chest.register_chest function default.intersects_protection(minp, maxp, player_name, interval) minetest.log("warning", "default.intersects_protection() is " .. "deprecated, use minetest.is_area_protected() instead.") - minetest.is_area_protected(minp, maxp, player_name, interval) + return minetest.is_area_protected(minp, maxp, player_name, interval) end -- 2.25.1