Only use models from the active gamemode

This commit is contained in:
JappaWakka 2023-08-29 11:28:53 +02:00
parent 18e020bfdf
commit 5429ad9e15
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,11 @@ Public Class ModelManager
Public Shared Function ModelExist(ByVal Path As String) As Boolean
Dim cContent As ContentManager = ContentPackManager.GetContentManager(Path, ".xnb")
If cContent.RootDirectory = "Content" Then
If GameModeManager.ActiveGameMode.Name <> "Kolben" Then
Return False
End If
End If
If Path = "" Then
Return False
End If