Skip to content

Commit 3356186

Browse files
committed
fix: HeightMap::get_worldspace takes Coordinate2D
1 parent add867c commit 3356186

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/mcpp/heightmap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ struct HeightMap {
4646

4747
/**
4848
* Get the height at a Minecraft coordinate if saved inside the height map
49-
* @param loc: Coordinate in Minecraft world to access in the map
49+
* @param loc: Coordinate2D in Minecraft world to access in the map
5050
* @return: height at specified coordinate
5151
*/
52-
int16_t get_worldspace(const Coordinate& loc) const;
52+
int16_t get_worldspace(const Coordinate2D& loc) const;
5353

5454
/**
5555
* Fill a coordinate inplace with the highest y coordinate at the `loc`'s x

src/heightmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int16_t HeightMap::get(int x, int z) const {
3737
return _raw_heights[(x * _z_len) + z];
3838
}
3939

40-
int16_t HeightMap::get_worldspace(const Coordinate& loc) const {
40+
int16_t HeightMap::get_worldspace(const Coordinate2D& loc) const {
4141
return get(loc.x - _base_pt.x, loc.z - _base_pt.z);
4242
}
4343

0 commit comments

Comments
 (0)