Fix a few small issues

closes #58
This commit is contained in:
sfan5
2018-10-20 23:01:03 +02:00
parent 657499e981
commit b2406db169
3 changed files with 15 additions and 25 deletions

View File

@ -20,24 +20,18 @@ public:
BlockPos(int16_t x, int16_t y, int16_t z) : x(x), y(y), z(z) {}
bool operator < (const BlockPos &p) const
{
if (z > p.z) {
if (z > p.z)
return true;
}
if (z < p.z) {
if (z < p.z)
return false;
}
if (y > p.y) {
if (y > p.y)
return true;
}
if (y < p.y) {
if (y < p.y)
return false;
}
if (x > p.x) {
if (x > p.x)
return true;
}
if (x < p.x) {
if (x < p.x)
return false;
}
return false;
}
};