mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 05:25:25 +01:00 
			
		
		
		
	it's possible for the player to be nil
in can_dig (e.g. if it's a technic quarry or something)
This commit is contained in:
		| @@ -206,6 +206,7 @@ minetest.register_node("itemframes:pedestal",{ | ||||
| 		end | ||||
| 	end, | ||||
| 	can_dig = function(pos,player) | ||||
| 		if not player then return end | ||||
| 		local name = player and player:get_player_name() | ||||
| 		local meta = minetest.get_meta(pos) | ||||
| 		return name == meta:get_string("owner") or | ||||
|   | ||||
		Reference in New Issue
	
	Block a user