mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 00:34:38 +02:00
Only use models from the active gamemode
This commit is contained in:
parent
18e020bfdf
commit
5429ad9e15
@ -31,7 +31,11 @@ Public Class ModelManager
|
|||||||
|
|
||||||
Public Shared Function ModelExist(ByVal Path As String) As Boolean
|
Public Shared Function ModelExist(ByVal Path As String) As Boolean
|
||||||
Dim cContent As ContentManager = ContentPackManager.GetContentManager(Path, ".xnb")
|
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
|
If Path = "" Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user