diff options
| author | mat <git@matdoes.dev> | 2024-12-25 03:00:48 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-25 03:00:48 +0000 |
| commit | 0ee9ed50e30222784d094e20302cadc879f2b6db (patch) | |
| tree | f5d730bb298c83e30f67d748d1c5e69d602c1200 /azalea-core/src | |
| parent | d67aa07c13c335b135080efc59f82df69aa34a95 (diff) | |
| download | azalea-drasl-0ee9ed50e30222784d094e20302cadc879f2b6db.tar.xz | |
optimize pathfinder
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/direction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-core/src/direction.rs b/azalea-core/src/direction.rs index aa537858..0cca7aaf 100755 --- a/azalea-core/src/direction.rs +++ b/azalea-core/src/direction.rs @@ -88,7 +88,7 @@ pub enum AxisCycle { impl CardinalDirection { #[inline] - pub fn x(self) -> i32 { + pub fn x(self) -> i16 { match self { CardinalDirection::East => 1, CardinalDirection::West => -1, @@ -96,7 +96,7 @@ impl CardinalDirection { } } #[inline] - pub fn z(self) -> i32 { + pub fn z(self) -> i16 { match self { CardinalDirection::South => 1, CardinalDirection::North => -1, |
