From 44806c6b3372aa34e2834c0e6676fac1c6bfd3b7 Mon Sep 17 00:00:00 2001 From: Pierce Lally Date: Tue, 24 Oct 2023 19:52:49 -0400 Subject: [PATCH] check for media player entity before wrapping media player panel (#49) * check for media player entity before wrapping media player panel * remove unused param --- lua/cfc_http_restrictions/wraps/html.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/cfc_http_restrictions/wraps/html.lua b/lua/cfc_http_restrictions/wraps/html.lua index 5df0f8c..051f883 100644 --- a/lua/cfc_http_restrictions/wraps/html.lua +++ b/lua/cfc_http_restrictions/wraps/html.lua @@ -95,4 +95,7 @@ end wrapHTMLPanel( "DHTML" ) wrapHTMLPanel( "DPanel" ) -wrapHTMLPanel( "DMediaPlayerHTML" ) + +if file.Exists( "entities/mediaplayer_tv", "LUA" ) then + wrapHTMLPanel( "DMediaPlayerHTML" ) +end