fix door opening code
This commit is contained in:
parent
3ab42e0373
commit
30ed33fcba
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user