0

world: Fix melon/pumpkin/mushroom stem rendering

Previous check for warped & crimson stem blocks was too inclusive,
causing stems of melons, pumpkins, and mushrooms to be interpreted
as air blocks
This commit is contained in:
Joseph Camp
2020-08-06 23:18:07 +00:00
parent 50b84e95b5
commit b29c9e9ffc

View File

@@ -1053,7 +1053,9 @@ class RegionSet(object):
(key == 'minecraft:observer' and p.get('powered', 'false') == 'true')): (key == 'minecraft:observer' and p.get('powered', 'false') == 'true')):
data |= 0x08 data |= 0x08
elif (key.endswith('_log') or key.endswith('_wood') or elif (key.endswith('_log') or key.endswith('_wood') or
key == 'minecraft:bone_block' or key.endswith('_stem')): key in ['minecraft:bone_block', 'minecraft:warped_stem',
'minecraft:stripped_warped_stem', 'minecraft:crimson_stem',
'minecraft:stripped_crimson_stem']):
axis = palette_entry['Properties']['axis'] axis = palette_entry['Properties']['axis']
if axis == 'x': if axis == 'x':
data |= 4 data |= 4