intersects_protection(): Fix compatibility code
authorluk3yx <luk3yx@users.noreply.github.com>
Wed, 3 Jul 2019 17:10:39 +0000 (05:10 +1200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 3 Jul 2019 17:10:39 +0000 (19:10 +0200)
mods/default/legacy.lua

index 935d857ad49acedf89ab45fd19cf6266acc9d163..a2d812d4664e53bbed48bfe670ef3ebbc8138be2 100644 (file)
@@ -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