Fixed rendering of new height and depth limit in 1.18
This commit is contained in:
@@ -178,7 +178,7 @@ bool load_chunk(RenderState* state, int32_t x, int32_t z, uint8_t required) {
|
||||
if (!ycoord)
|
||||
continue;
|
||||
|
||||
sectiony = PyLong_AsLong(ycoord);
|
||||
sectiony = PyLong_AsLong(ycoord) + 4;
|
||||
if (sectiony >= 0 && sectiony < SECTIONS_PER_CHUNK)
|
||||
load_chunk_section(dest, sectiony, section);
|
||||
}
|
||||
@@ -353,7 +353,7 @@ generate_pseudo_data(RenderState* state, uint16_t ancilData) {
|
||||
/* calculate the global block coordinates of this position */
|
||||
wx = (state->chunkx * 16) + x;
|
||||
wz = (state->chunkz * 16) + z;
|
||||
wy = (state->chunky * 16) + y;
|
||||
wy = ((state->chunky - 4) * 16) + y;
|
||||
/* lilypads orientation is obtained with these magic numbers */
|
||||
/* magic numbers obtained from: */
|
||||
/* http://llbit.se/?p=1537 */
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
// increment this value if you've made a change to the c extension
|
||||
// and want to force users to rebuild
|
||||
#define OVERVIEWER_EXTENSION_VERSION 107
|
||||
#define OVERVIEWER_EXTENSION_VERSION 108
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
@@ -78,7 +78,7 @@ PyObject* resize_half_wrap(PyObject* self, PyObject* args);
|
||||
typedef struct _RenderMode RenderMode;
|
||||
|
||||
/* in iterate.c */
|
||||
#define SECTIONS_PER_CHUNK 16
|
||||
#define SECTIONS_PER_CHUNK 24
|
||||
typedef struct {
|
||||
/* whether this chunk is loaded: use load_chunk to load */
|
||||
int32_t loaded;
|
||||
|
||||
Reference in New Issue
Block a user