diff --git a/P3D/Entites/Other/NPC.vb b/P3D/Entites/Other/NPC.vb index c4de4ab38..3ff710e1a 100644 --- a/P3D/Entites/Other/NPC.vb +++ b/P3D/Entites/Other/NPC.vb @@ -186,8 +186,14 @@ End If End Sub - Public Shared Sub RemoveNPCData(ByVal file As String, ByVal ID As Integer, ByVal action As String, ByVal addition As String) - Dim Data As String = "{" & file & "|" & ID & "|" & action & "|" & addition & "}" + Public Shared Sub RemoveNPCData(ByVal file As String, ByVal ID As Integer, ByVal action As String, Optional ByVal addition As String = "") + Dim Data As String + If addition = "" Then + Data = "{" & file & "|" & ID & "|" & action & "}" + Else + Data = "{" & file & "|" & ID & "|" & action & "|" & addition & "}" + End If + Dim NData() As String = Core.Player.NPCData.SplitAtNewline() Dim nList As List(Of String) = NData.ToList()