dont allow harvest if protected
parent
50e4cf1fe0
commit
bf8b487ae2
1
init.lua
1
init.lua
|
@ -74,6 +74,7 @@ minetest.register_tool("mese_crystals:crystaline_bell", {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local pos = pointed_thing.under
|
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 node = minetest.get_node(pos)
|
||||||
local growth_stage = 0
|
local growth_stage = 0
|
||||||
if node.name == "mese_crystals:mese_crystal_ore4" then
|
if node.name == "mese_crystals:mese_crystal_ore4" then
|
||||||
|
|
Loading…
Reference in New Issue