Skip to content

Commit f12d254

Browse files
committed
feat: make mcpp::fillHeight const
1 parent 2c36c80 commit f12d254

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/mcpp/mcpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class MinecraftConnection {
160160
* @param loc 2D coordinate
161161
* @return Returns the coordinate with the filled-in height.
162162
*/
163-
Coordinate fillHeight(Coordinate2D loc);
163+
Coordinate fillHeight(Coordinate2D loc) const;
164164

165165
/**
166166
* @brief Provides a scaled option of the getHeight call to allow for

src/mcpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int MinecraftConnection::getHeight(Coordinate2D loc) const {
108108
return stoi(response);
109109
}
110110

111-
Coordinate MinecraftConnection::fillHeight(Coordinate2D loc) {
111+
Coordinate MinecraftConnection::fillHeight(Coordinate2D loc) const {
112112
int y = this->getHeight(loc);
113113
return Coordinate(loc.x, y, loc.z);
114114
}

0 commit comments

Comments
 (0)