mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Hotfix] Fix Door opening regression caused by #2880
This commit is contained in:
parent
064ae7ba89
commit
c115cbcd6a
@ -4561,11 +4561,14 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app)
|
||||
// don't spam scripts with client controlled doors if not within distance
|
||||
if (within_distance) {
|
||||
if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) {
|
||||
std::vector<std::any> args = { currentdoor };
|
||||
std::vector<std::any> args = {currentdoor};
|
||||
if (parse->EventPlayer(EVENT_CLICK_DOOR, this, std::to_string(cd->doorid), 0, &args) == 0) {
|
||||
currentdoor->HandleClick(this, 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
currentdoor->HandleClick(this, 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// we let this pass because client controlled doors require this to force the linked doors
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user