File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ bool block_class_is_wall(mc_block_t block) {
6262 mc_block_t mask = 0b11111111 ;
6363 mc_block_t prefix = 0b111 << 8 ; // 1792 is the starting offset
6464 // if the xor zeroes all bits, the prefix must've matched.
65- return (block & ~mask ) ^ prefix == 0 ;
65+ return (( block & ~mask ) ^ prefix ) == 0 ;
6666}
6767
6868const mc_block_t block_class_stair [] = {
Original file line number Diff line number Diff line change 3131
3232// increment this value if you've made a change to the c extension
3333// and want to force users to rebuild
34- #define OVERVIEWER_EXTENSION_VERSION 90
34+ #define OVERVIEWER_EXTENSION_VERSION 91
3535
3636#include <stdbool.h>
3737#include <stdint.h>
Original file line number Diff line number Diff line change @@ -1053,7 +1053,9 @@ def _get_block(self, palette_entry):
10531053 (key == 'minecraft:observer' and p .get ('powered' , 'false' ) == 'true' )):
10541054 data |= 0x08
10551055 elif (key .endswith ('_log' ) or key .endswith ('_wood' ) or
1056- key == 'minecraft:bone_block' or key .endswith ('_stem' )):
1056+ key in ['minecraft:bone_block' , 'minecraft:warped_stem' ,
1057+ 'minecraft:stripped_warped_stem' , 'minecraft:crimson_stem' ,
1058+ 'minecraft:stripped_crimson_stem' ]):
10571059 axis = palette_entry ['Properties' ]['axis' ]
10581060 if axis == 'x' :
10591061 data |= 4
You can’t perform that action at this time.
0 commit comments