migratetion to 0.18.0

This commit is contained in:
2026-02-16 00:02:00 +00:00
parent a9040a4c9e
commit 4ef68c4e04
17 changed files with 1260 additions and 732 deletions
+2 -2
View File
@@ -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 Rabbit {
@@ -38,7 +38,7 @@ impl Rabbit {
pub fn spawn_rabbits(
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() {
for _ in 0..15 {