fix door opening code

This commit is contained in:
BuckarooBanzay 2021-02-02 09:18:40 +01:00
parent 3ab42e0373
commit 30ed33fcba

View File

@ -38,7 +38,7 @@ travelnet.open_close_door = function( pos, player, mode )
end
local door_node = minetest.get_node(pos2);
if not door_node and door_node.name ~= 'ignore' and door_node.name ~= 'air' and
if door_node and door_node.name ~= 'ignore' and door_node.name ~= 'air' and
minetest.registered_nodes[ door_node.name ] ~= nil and
minetest.registered_nodes[ door_node.name ].on_rightclick ~= nil then