mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Rename argument to priv check
Fixes crash when punching bones not owned by you, and may resolve https://github.com/minetest/minetest_game/issues/940
This commit is contained in:
		@@ -5,7 +5,7 @@ bones = {}
 | 
			
		||||
 | 
			
		||||
local function is_owner(pos, name)
 | 
			
		||||
	local owner = minetest.get_meta(pos):get_string("owner")
 | 
			
		||||
	if owner == "" or owner == name or minetest.check_player_privs(placer, "protection_bypass") then
 | 
			
		||||
	if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
	return false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user