Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for door not opening/closing #809

Merged
merged 4 commits into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data-canary/scripts/actions/door/custom_door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end
local customDoor = Action()

function customDoor.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if Creature.isInsideDoor(player, toPosition) then
if Creature.checkCreatureInsideDoor(player, toPosition) then
return true
end

Expand Down
2 changes: 1 addition & 1 deletion data-canary/scripts/actions/door/key_door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function keyDoor.onUse(player, item, fromPosition, target, toPosition, isHotkey)
end
for index, value in ipairs(KeyDoorTable) do
if value.openDoor == item.itemid then
if Creature.isInsideDoor(player, toPosition) then
if Creature.checkCreatureInsideDoor(player, toPosition) then
return false
end
item:transform(value.closedDoor)
Expand Down
2 changes: 1 addition & 1 deletion data-canary/scripts/actions/door/level_door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function levelDoor.onUse(player, item, fromPosition, target, toPosition, isHotke
end
end

if Creature.isInsideDoor(player, toPosition) then
if Creature.checkCreatureInsideDoor(player, toPosition) then
return true
end
return true
Expand Down
2 changes: 1 addition & 1 deletion data-canary/scripts/actions/door/quest_door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function questDoor.onUse(player, item, fromPosition, target, toPosition, isHotke
end
end

if Creature.isInsideDoor(player, toPosition) then
if Creature.checkCreatureInsideDoor(player, toPosition) then
return true
end
return true
Expand Down