check for media player entity before wrapping media player panel (#49)

* check for media player entity before wrapping media player panel

* remove unused param
This commit is contained in:
Pierce Lally 2023-10-24 19:52:49 -04:00 committed by GitHub
parent a57a7515dc
commit 44806c6b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,4 +95,7 @@ end
wrapHTMLPanel( "DHTML" )
wrapHTMLPanel( "DPanel" )
wrapHTMLPanel( "DMediaPlayerHTML" )
if file.Exists( "entities/mediaplayer_tv", "LUA" ) then
wrapHTMLPanel( "DMediaPlayerHTML" )
end