diff --git a/CommunityEntity.UI.cs b/CommunityEntity.UI.cs index 09ffd54..6a0df8a 100644 --- a/CommunityEntity.UI.cs +++ b/CommunityEntity.UI.cs @@ -88,6 +88,11 @@ public void AddUI( RPCMessage msg ) if ( json.ContainsKey( "destroyUi" ) ) { DestroyPanel( json.GetString( "destroyUi", "AddUI CreatedPanel" ) ); + if(json.GetBoolean("destroyOnly", false)) + { + //This request is only to destroy the panel. Continue to the next element. + continue; + } } var parentPanel = FindPanel( json.GetString( "parent", "Overlay" ) ); var gameObjectName = json.GetString( "name", "AddUI CreatedPanel" );