Skip to content

Commit

Permalink
Doors: Ignore permission check if player parameter is omitted
Browse files Browse the repository at this point in the history
As written in game_api.txt.
  • Loading branch information
paly2 authored and paramat committed Apr 20, 2017
1 parent c54a7e8 commit 6335525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/doors/init.lua
Expand Up @@ -150,7 +150,7 @@ function _doors.door_toggle(pos, node, clicker)

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
end

Expand Down Expand Up @@ -530,7 +530,7 @@ function _doors.trapdoor_toggle(pos, node, clicker)

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
end

Expand Down

0 comments on commit 6335525

Please sign in to comment.