migratetion to 0.18.0
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::entities::shared_components::Ambulatory;
|
||||
use crate::world::VisibleGameEntity;
|
||||
use bevy::prelude::*;
|
||||
use bevy_rand::prelude::*;
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
|
||||
#[derive(Bundle)]
|
||||
pub struct Dorf {
|
||||
@@ -38,7 +38,7 @@ impl Dorf {
|
||||
pub fn spawn_dorfs(
|
||||
mut commands: Commands,
|
||||
asset_server: Res<AssetServer>,
|
||||
mut rng_q: Query<&mut Entropy<WyRand>, With<Global>>,
|
||||
mut rng_q: Query<&mut WyRand, With<GlobalRng>>,
|
||||
) {
|
||||
if let Ok(mut rng) = rng_q.single_mut() {
|
||||
// Spawn a handful of dorfs
|
||||
|
||||
Reference in New Issue
Block a user