Doors: Ignore permission check if player parameter is omitted
As written in game_api.txt.
This commit is contained in:
parent
c54a7e882f
commit
6335525757
|
@ -150,7 +150,7 @@ function _doors.door_toggle(pos, node, clicker)
|
||||||
|
|
||||||
replace_old_owner_information(pos)
|
replace_old_owner_information(pos)
|
||||||
|
|
||||||
if not default.can_interact_with_node(clicker, pos) then
|
if clicker and not default.can_interact_with_node(clicker, pos) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -530,7 +530,7 @@ function _doors.trapdoor_toggle(pos, node, clicker)
|
||||||
|
|
||||||
replace_old_owner_information(pos)
|
replace_old_owner_information(pos)
|
||||||
|
|
||||||
if not default.can_interact_with_node(clicker, pos) then
|
if clicker and not default.can_interact_with_node(clicker, pos) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue