Fix getting MapBlocks for abs(z) > 2048 with sqlite3 backend (fixed #31)

This commit is contained in:
sfan5
2016-09-18 14:33:13 +02:00
parent ae9321de1e
commit 4db3040f2a
2 changed files with 4 additions and 2 deletions

2
db.h
View File

@ -16,6 +16,8 @@ public:
int16_t y;
int16_t z;
BlockPos() : x(0), y(0), z(0) {}
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) {