mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Add protection check when digging vines (#58)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user