mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 04:23:04 +00:00
don't load water in headless mode
This commit is contained in:
parent
f9a6e11c53
commit
2991a3bbd6
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
using SanAndreasUnity.Importing.Items;
|
||||
using SanAndreasUnity.Importing.Items.Placements;
|
||||
using System.Linq;
|
||||
using SanAndreasUnity.Utilities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SanAndreasUnity.Behaviours.World
|
||||
|
@ -12,6 +13,9 @@ namespace SanAndreasUnity.Behaviours.World
|
|||
|
||||
public void Initialize(WaterFile file)
|
||||
{
|
||||
if (F.IsInHeadlessMode)
|
||||
return;
|
||||
|
||||
if (this.WaterPrefab == null)
|
||||
{
|
||||
Debug.LogError("No water prefab set, skipping load!");
|
||||
|
|
Loading…
Reference in a new issue