valence/crates/valence_anvil
Ryan Johnson 53573642ec
Make Ident consistent with vanilla. (#309)
## Description

Makes `Ident` consistent with vanilla by prepending the default
namespace if none is provided in the constructor.

Previously, the constructor did not normalize `foo` to `minecraft:foo`.
This could lead to subtle bugs when the ident is eventually unwrapped
with `Ident::as_str`. (comparing `foo` with `minecraft:foo` while inside
the `Ident` was still handled correctly).

## Test Plan

Steps:
1. `cargo test`
2023-03-25 18:44:45 -07:00
..
benches ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00
examples Entity Rework (#294) 2023-03-21 23:29:38 -07:00
src Make Ident consistent with vanilla. (#309) 2023-03-25 18:44:45 -07:00
Cargo.toml Entity Rework (#294) 2023-03-21 23:29:38 -07:00