Add protection check when digging vines (#58)

This commit is contained in:
Niklp 2023-08-30 23:30:10 +02:00 committed by GitHub
parent 9e771e2988
commit 6a3c47157f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ end
-- FUNCTIONS
local function on_dig(pos, node, player)
if not player or minetest.is_protected(pos, player:get_player_name()) then
return
end
local vine_name_end = node.name:gsub("_middle", "_end")
local drop_item = "vines:vines"
if enable_vines == false then