From 49e8803ee08412c4878ca5d3b0eae05abee9193f Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 11 Feb 2022 20:22:08 -0500 Subject: [PATCH] Fixed tests --- world/src/site2/plot/gnarling.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/world/src/site2/plot/gnarling.rs b/world/src/site2/plot/gnarling.rs index e6e502e8b0..8c6046a20d 100644 --- a/world/src/site2/plot/gnarling.rs +++ b/world/src/site2/plot/gnarling.rs @@ -2064,14 +2064,15 @@ mod tests { #[test] fn test_creating_entities() { let pos = Vec3::zero(); + let mut rng = thread_rng(); - gnarling_mugger(pos); - gnarling_stalker(pos); - gnarling_logger(pos); - gnarling_chieftain(pos); - deadwood(pos); - mandragora(pos); - wood_golem(pos); - harvester_boss(pos); + gnarling_mugger(pos, &mut rng); + gnarling_stalker(pos, &mut rng); + gnarling_logger(pos, &mut rng); + gnarling_chieftain(pos, &mut rng); + deadwood(pos, &mut rng); + mandragora(pos, &mut rng); + wood_golem(pos, &mut rng); + harvester_boss(pos, &mut rng); } }