dont allow harvest if protected

master
rnd1 2015-11-06 14:52:08 +01:00
parent 50e4cf1fe0
commit bf8b487ae2
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ minetest.register_tool("mese_crystals:crystaline_bell", {
return
end
local pos = pointed_thing.under
if minetest.is_protected(pos, user:get_player_name()) then return end -- dont allow harvest if position protected
local node = minetest.get_node(pos)
local growth_stage = 0
if node.name == "mese_crystals:mese_crystal_ore4" then