forked from luanti-org/minetest_game
		
	Fix missing argument for on_rotate
This commit is contained in:
		@@ -53,7 +53,7 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
 | 
				
			|||||||
		-- Copy pos and node because callback can modify it
 | 
							-- Copy pos and node because callback can modify it
 | 
				
			||||||
		local result = ndef.on_rotate(vector.new(pos),
 | 
							local result = ndef.on_rotate(vector.new(pos),
 | 
				
			||||||
				{name = node.name, param1 = node.param1, param2 = node.param2},
 | 
									{name = node.name, param1 = node.param1, param2 = node.param2},
 | 
				
			||||||
				user, mode)
 | 
									user, mode, new_param2)
 | 
				
			||||||
		if result == false then -- Disallow rotation
 | 
							if result == false then -- Disallow rotation
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		elseif result == true then
 | 
							elseif result == true then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user