Skip to content

Commit c679cc3

Browse files
authored
Fixed world persistance tests (SubnauticaNitrox#1418)
1 parent 1f02fd9 commit c679cc3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

NitroxTest/Serialization/WorldPersistenceTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public void Setup()
5050

5151
worldData = GeneratePersistedWorldData();
5252
world = worldPersistence.CreateWorld(worldData, serverConfig.GameMode);
53+
world.EventTriggerer.PauseEventTimers();
54+
world.EventTriggerer.PauseWorldTime();
5355

5456
worldsDataAfter = new PersistedWorldData[serverSerializers.Length];
5557
for (int index = 0; index < serverSerializers.Length; index++)
@@ -477,7 +479,8 @@ private static PersistedWorldData GeneratePersistedWorldData()
477479
{
478480
new VehicleModel(new NitroxTechType("Cyclops"), new NitroxId(), NitroxVector3.One, NitroxQuaternion.Identity, new InteractiveChildObjectIdentifier[0], Optional<NitroxId>.Of(new NitroxId()), "Super Duper Cyclops", new []{NitroxVector3.Zero, NitroxVector3.One, NitroxVector3.One}, 100)
479481
}
480-
}
482+
},
483+
Seed = "NITROXSEED"
481484
}
482485
};
483486
}

0 commit comments

Comments
 (0)