valence/crates/valence_protocol/build
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
..
block.rs Provide API for getting the wall variant of blocks (#255) 2023-02-23 21:21:27 -08:00
enchant.rs Reorganize Packages (#180) 2022-12-29 16:51:05 -08:00
item.rs Reorganize Packages (#180) 2022-12-29 16:51:05 -08:00
main.rs Add sounds (#244) 2023-02-15 02:36:21 -08:00
sound.rs Make Ident consistent with vanilla. (#309) 2023-03-25 18:44:45 -07:00
translation_key.rs Reorganize Packages (#180) 2022-12-29 16:51:05 -08:00