mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Screwdriver: Fix crash
If 'node_box' is nil 'node_box.type' causes a crash.
This commit is contained in:
		@@ -67,7 +67,7 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
 | 
			
		||||
		if not ndef or not ndef.paramtype2 == "facedir" or
 | 
			
		||||
				ndef.on_rotate == false or
 | 
			
		||||
				(ndef.drawtype == "nodebox" and
 | 
			
		||||
				not ndef.node_box.type == "fixed") or
 | 
			
		||||
				(ndef.node_box and ndef.node_box.type ~= "fixed")) or
 | 
			
		||||
				node.param2 == nil then
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user