mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-31 15:45:21 +01:00 
			
		
		
		
	Creative: Make the placenode registration check for non-player placers
This commit is contained in:
		| @@ -40,7 +40,9 @@ end | ||||
|  | ||||
| -- Unlimited node placement | ||||
| minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack) | ||||
| 	return creative.is_enabled_for(placer:get_player_name()) | ||||
| 	if placer and placer:is_player() then | ||||
| 		return creative.is_enabled_for(placer:get_player_name()) | ||||
| 	end | ||||
| end) | ||||
|  | ||||
| -- Don't pick up if the item is already in the inventory | ||||
|   | ||||
		Reference in New Issue
	
	Block a user