[Hotfix] Another doors fix

This commit is contained in:
Akkadius 2023-02-14 06:28:42 -06:00
parent 665e336946
commit 8ed7ca977f

View File

@ -4560,15 +4560,15 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app)
// don't spam scripts with client controlled doors if not within distance
if (within_distance) {
int quest_return = 0;
if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) {
std::vector<std::any> args = {currentdoor};
int quest_return = 0;
quest_return = parse->EventPlayer(EVENT_CLICK_DOOR, this, std::to_string(cd->doorid), 0, &args);
}
if (quest_return == 0) {
currentdoor->HandleClick(this, 0);
}
if (quest_return == 0) {
currentdoor->HandleClick(this, 0);
}
}
else {