aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-03-14 01:22:15 -0500
committermat <github@matdoes.dev>2023-03-14 01:22:15 -0500
commitaa846bc0270d3f0974cfb27ac5057dbf9c08748b (patch)
tree639d46f6036337033d8b50c883ef6259b9aefb87 /azalea-physics/src
parent1ff24959627d03d7b2491ad3111d270ef128a4be (diff)
downloadazalea-drasl-aa846bc0270d3f0974cfb27ac5057dbf9c08748b.tar.xz
make ResourceLocation::new -> Self and impl Serialize/Deserialize for ResourceLocation
Diffstat (limited to 'azalea-physics/src')
-rw-r--r--azalea-physics/src/lib.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs
index 5331e02d..049091f7 100644
--- a/azalea-physics/src/lib.rs
+++ b/azalea-physics/src/lib.rs
@@ -326,7 +326,7 @@ mod tests {
fn test_gravity() {
let mut app = make_test_app();
let _world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -342,7 +342,7 @@ mod tests {
z: 0.,
},
azalea_registry::EntityKind::Zombie,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,
@@ -378,7 +378,7 @@ mod tests {
fn test_collision() {
let mut app = make_test_app();
let world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -400,7 +400,7 @@ mod tests {
z: 0.5,
},
azalea_registry::EntityKind::Player,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,
@@ -437,7 +437,7 @@ mod tests {
fn test_slab_collision() {
let mut app = make_test_app();
let world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -459,7 +459,7 @@ mod tests {
z: 0.5,
},
azalea_registry::EntityKind::Player,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,
@@ -491,7 +491,7 @@ mod tests {
fn test_top_slab_collision() {
let mut app = make_test_app();
let world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -513,7 +513,7 @@ mod tests {
z: 0.5,
},
azalea_registry::EntityKind::Player,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,
@@ -544,7 +544,7 @@ mod tests {
fn test_weird_wall_collision() {
let mut app = make_test_app();
let world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -566,7 +566,7 @@ mod tests {
z: 0.5,
},
azalea_registry::EntityKind::Player,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,
@@ -602,7 +602,7 @@ mod tests {
fn test_negative_coordinates_weird_wall_collision() {
let mut app = make_test_app();
let world_lock = app.world.resource_mut::<InstanceContainer>().insert(
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
384,
-64,
);
@@ -624,7 +624,7 @@ mod tests {
z: -7.5,
},
azalea_registry::EntityKind::Player,
- ResourceLocation::new("minecraft:overworld").unwrap(),
+ ResourceLocation::new("minecraft:overworld"),
),
MinecraftEntityId(0),
Local,