From 75f7c459c4e09c73285350eeaafc17b699b5caa0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Skutnik Date: Sun, 31 Oct 2021 17:59:02 -0700 Subject: [PATCH] Support tall worlds for snapshots --- src/helper.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helper.h b/src/helper.h index 3e097eb4..74a793d6 100644 --- a/src/helper.h +++ b/src/helper.h @@ -29,8 +29,13 @@ namespace fs = std::filesystem; namespace mcmap { namespace constants { +#ifdef SNAPSHOT_SUPPORT +const int16_t min_y = -64; +const int16_t max_y = 319; +#else const int16_t min_y = 0; const int16_t max_y = 255; +#endif const uint16_t terrain_height = max_y - min_y + 1; const int8_t color_offset_left = -27;