Skip to content

Commit 75f7c45

Browse files
committed
Support tall worlds for snapshots
1 parent 360a08f commit 75f7c45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/helper.h

+5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ namespace fs = std::filesystem;
2929

3030
namespace mcmap {
3131
namespace constants {
32+
#ifdef SNAPSHOT_SUPPORT
33+
const int16_t min_y = -64;
34+
const int16_t max_y = 319;
35+
#else
3236
const int16_t min_y = 0;
3337
const int16_t max_y = 255;
38+
#endif
3439
const uint16_t terrain_height = max_y - min_y + 1;
3540

3641
const int8_t color_offset_left = -27;

0 commit comments

Comments
 (0)