Skip to content

Commit

Permalink
Support tall worlds for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
spoutn1k committed Nov 1, 2021
1 parent 360a08f commit 75f7c45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75f7c45

Please sign in to comment.