diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 0f2e8a6..8660e07 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -925,10 +925,12 @@ class RegionSet(object): if p['east'] == 'true': data |= 8 elif key.endswith('_stairs'): facing = palette_entry['Properties']['facing'] - if facing == 'south': data |= 0x60 - elif facing == 'east': data |= 0x30 - elif facing == 'north': data |= 0x18 - elif facing == 'west': data |= 0x48 + if facing == 'south': data = 2 + elif facing == 'east': data = 0 + elif facing == 'north': data = 3 + elif facing == 'west': data = 1 + if palette_entry['Properties']['half'] == 'top': + data |= 0x4 elif key.endswith('_door'): p = palette_entry['Properties'] if p['hinge'] == 'left': data |= 0x10 @@ -947,7 +949,6 @@ class RegionSet(object): elif key in ['minecraft:beetroots', 'minecraft:melon_stem', 'minecraft:wheat', 'minecraft:pumpkin_stem', 'minecraft:potatoes', 'minecraft:carrots']: data = palette_entry['Properties']['age'] - return (block, data) def get_type(self):