Support blockid > 255
This commit is contained in:
@@ -136,7 +136,7 @@ extern unsigned int max_blockid;
|
|||||||
extern unsigned int max_data;
|
extern unsigned int max_data;
|
||||||
extern unsigned char *block_properties;
|
extern unsigned char *block_properties;
|
||||||
static inline int
|
static inline int
|
||||||
block_has_property(unsigned char b, BlockProperty prop) {
|
block_has_property(unsigned short b, BlockProperty prop) {
|
||||||
if (b >= max_blockid || !(block_properties[b] & (1 << KNOWN))) {
|
if (b >= max_blockid || !(block_properties[b] & (1 << KNOWN))) {
|
||||||
/* block is unknown, return defaults */
|
/* block is unknown, return defaults */
|
||||||
if (prop == TRANSPARENT)
|
if (prop == TRANSPARENT)
|
||||||
|
|||||||
Reference in New Issue
Block a user