1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-06-28 14:16:11 +02:00

use minetest built-in functions for node protection

phase out the old hand-rolled protection function
drops support for old protection mods
This commit is contained in:
Vanessa Ezekowitz
2014-06-22 22:20:51 -04:00
parent ce8433ac1e
commit ca88a35f26
2 changed files with 2 additions and 38 deletions

View File

@ -94,7 +94,7 @@ for i in ipairs(lilies_list) do
place_pos = pt.above
end
if not plantslib:node_is_owned(place_pos, placer) then
if not minetest.is_protected(place_pos, placer:get_player_name()) then
local nodename = "default:cobble" -- if this block appears, something went....wrong :-)
@ -194,7 +194,7 @@ for i in ipairs(algae_list) do
place_pos = pt.above
end
if not plantslib:node_is_owned(place_pos, placer) then
if not minetest.is_protected(place_pos, placer:get_player_name()) then
local nodename = "default:cobble" -- :D