From: luk3yx Date: Wed, 3 Jul 2019 17:10:39 +0000 (+1200) Subject: intersects_protection(): Fix compatibility code X-Git-Tag: 5.1.0~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d530e0c2573dd9bf1a9299e95ed007fa131647a;p=oweals%2Fminetest_game.git intersects_protection(): Fix compatibility code --- 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