Skip to content

Commit 6335525

Browse files
paly2paramat
authored andcommittedApr 20, 2017
Doors: Ignore permission check if player parameter is omitted
As written in game_api.txt.
1 parent c54a7e8 commit 6335525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎mods/doors/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function _doors.door_toggle(pos, node, clicker)
150150

151151
replace_old_owner_information(pos)
152152

153-
if not default.can_interact_with_node(clicker, pos) then
153+
if clicker and not default.can_interact_with_node(clicker, pos) then
154154
return false
155155
end
156156

@@ -530,7 +530,7 @@ function _doors.trapdoor_toggle(pos, node, clicker)
530530

531531
replace_old_owner_information(pos)
532532

533-
if not default.can_interact_with_node(clicker, pos) then
533+
if clicker and not default.can_interact_with_node(clicker, pos) then
534534
return false
535535
end
536536

0 commit comments

Comments
 (0)
Please sign in to comment.