Skip to content

Commit

Permalink
Fix oddity in stairs not being targeted if standing near a door when …
Browse files Browse the repository at this point in the history
…(un)locking using a key #410 based on feedback here https://discord.com/channels/401855954272124940/1211785094470307921
  • Loading branch information
brightrim committed Feb 27, 2024
1 parent 6435727 commit bb28f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion item/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function M.UseItem(user, SourceItem)
common.TurnTo(user, stairItem.pos)
end

if doorItem and keys.CheckKey(SourceItem, doorItem, user) then
if doorItem and not stairIsFrontItem and keys.CheckKey(SourceItem, doorItem, user) then

if keys.LockDoor(doorItem, user) then
common.InformNLS(user,"Du sperrst die Tür ab.","You lock the door.")
Expand Down

0 comments on commit bb28f94

Please sign in to comment.