Skip to content

Commit

Permalink
Merge pull request #1082 from MattJeanes/feed-player-in-CanPlayerEnte…
Browse files Browse the repository at this point in the history
…rDoor
  • Loading branch information
MattJeanes authored Sep 4, 2024
2 parents e0a28af + 162bda2 commit 6e1fd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/entities/gmod_tardis/modules/sv_interior.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ENT:AddHook("Use", "interior", function(self,a,c)
if a:KeyDown(IN_WALK) or not IsValid(self.interior) or self:GetData("legacy_door_type") then
if self:CallHook("CanPlayerEnterDoor")~=false then
if self:CallHook("CanPlayerEnterDoor", a)~=false then
self:PlayerEnter(a)
end
else
Expand Down Expand Up @@ -40,4 +40,4 @@ ENT:AddHook("OnRemove", "interior", function(self)
if IsValid(self.interior) then
self.interior.exterior_deleted = true
end
end)
end)

0 comments on commit 6e1fd2a

Please sign in to comment.