We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mcpp::fillHeight
const
1 parent 2c36c80 commit f12d254Copy full SHA for f12d254
2 files changed
include/mcpp/mcpp.h
@@ -160,7 +160,7 @@ class MinecraftConnection {
160
* @param loc 2D coordinate
161
* @return Returns the coordinate with the filled-in height.
162
*/
163
- Coordinate fillHeight(Coordinate2D loc);
+ Coordinate fillHeight(Coordinate2D loc) const;
164
165
/**
166
* @brief Provides a scaled option of the getHeight call to allow for
src/mcpp.cpp
@@ -108,7 +108,7 @@ int MinecraftConnection::getHeight(Coordinate2D loc) const {
108
return stoi(response);
109
}
110
111
-Coordinate MinecraftConnection::fillHeight(Coordinate2D loc) {
+Coordinate MinecraftConnection::fillHeight(Coordinate2D loc) const {
112
int y = this->getHeight(loc);
113
return Coordinate(loc.x, y, loc.z);
114
0 commit comments