forked from luanti-org/minetest_game
		
	Fix bug rotating unknown node
This fixes a bug what crashes game when rotating an unknown node.
This commit is contained in:
		| @@ -36,7 +36,7 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode) | ||||
| 	local node = minetest.get_node(pos) | ||||
| 	local ndef = minetest.registered_nodes[node.name] | ||||
| 	-- verify node is facedir (expected to be rotatable) | ||||
| 	if ndef.paramtype2 ~= "facedir" then | ||||
| 	if not ndef or ndef.paramtype2 ~= "facedir" then | ||||
| 		return | ||||
| 	end | ||||
| 	-- Compute param2 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user