Adds ValidatedBlockPosition which checks if a block position is valid in order to increase runtime safety. I've updated all internal code to use this type where applicable,
Relevant Issues
Closes #476
Checklist
[X] Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
[X] Removed unnecessary commented out code
[X] Used specific traces (if you trace actions please specify the cause i.e. the player)
It should be noted for future development involving BlockPosition, Plugins should likely never be allowed to have anything to do with ValidBlockPosition because they could maliciously inject invalid data.
Add
ValidatedBlockPosition
Status
Description
Adds
ValidatedBlockPosition
which checks if a block position is valid in order to increase runtime safety. I've updated all internal code to use this type where applicable,Relevant Issues
Closes #476
Checklist
cargo fmt
,cargo clippy --all-targets
,cargo build --release
andcargo test
and fixed any generated errors!