Merge pull request #25 from Python1320/patch-1

Fix MediaPlayerAddListener hook
This commit is contained in:
Samuel Maddock 2019-02-23 02:27:08 -05:00 committed by GitHub
commit f356fc4b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ function MEDIAPLAYER:AddListener( ply )
self:SendMedia( self:CurrentMedia(), ply )
end
hook.Call( "MediaPlayerAddListener", self, ply )
hook.Run( "MediaPlayerAddListener", self, ply )
end
@ -152,7 +152,7 @@ function MEDIAPLAYER:RemoveListener( ply )
net.WriteString( self:GetId() )
net.Send( ply )
hook.Call( "MediaPlayerRemoveListener", self, ply )
hook.Run( "MediaPlayerRemoveListener", self, ply )
end