From 7866942597cc79f8139eb30e1e01dfbc91906c34 Mon Sep 17 00:00:00 2001 From: codinablack Date: Fri, 6 Dec 2024 15:46:41 -0600 Subject: [PATCH] Fixes issue #17 Removed access check --- data/scripts/actions/others/doors.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/scripts/actions/others/doors.lua b/data/scripts/actions/others/doors.lua index b4de9863..f75c3c65 100644 --- a/data/scripts/actions/others/doors.lua +++ b/data/scripts/actions/others/doors.lua @@ -3,7 +3,7 @@ local door = Action() function door.onUse(player, item, fromPosition, target, toPosition, isHotkey) local itemId = item:getId() if table.contains(closedQuestDoors, itemId) then - if player:getStorageValue(item.actionid) ~= -1 or player:getGroup():getAccess() then + if player:getStorageValue(item.actionid) ~= -1 then item:transform(itemId + 1) player:teleportTo(toPosition, true) else @@ -11,7 +11,7 @@ function door.onUse(player, item, fromPosition, target, toPosition, isHotkey) end return true elseif table.contains(closedLevelDoors, itemId) then - if item.actionid > 0 and player:getLevel() >= item.actionid - actionIds.levelDoor or player:getGroup():getAccess() then + if item.actionid > 0 and player:getLevel() >= item.actionid - actionIds.levelDoor then item:transform(itemId + 1) player:teleportTo(toPosition, true) else