Skip to content

Commit 4c0a69d

Browse files
Merge PR #1826 from Auron956
Resolve stair & stem rendering issues
2 parents 50b84e9 + a839fa4 commit 4c0a69d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

overviewer_core/src/block_class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

6868
const mc_block_t block_class_stair[] = {

overviewer_core/src/overviewer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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>

overviewer_core/world.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)