mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Add log for seeds on place
This commit is contained in:
		@@ -177,6 +177,8 @@ farming.place_seed = function(itemstack, placer, pointed_thing, plantname)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- add the node and remove 1 item from the itemstack
 | 
			
		||||
	minetest.log("action", player_name .. " places node " .. plantname .. " at " ..
 | 
			
		||||
		minetest.pos_to_string(pt.above))
 | 
			
		||||
	minetest.add_node(pt.above, {name = plantname, param2 = 1})
 | 
			
		||||
	tick(pt.above)
 | 
			
		||||
	if not (creative and creative.is_enabled_for
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user