From 2b699d035526517367fd805630d74ad00dc968dc Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 23 Dec 2019 19:06:51 +0100 Subject: [PATCH] world: fix door block translation code Fixes #1697. --- overviewer_core/world.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index d5fe11a..2768843 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -1110,12 +1110,13 @@ class RegionSet(object): elif key.endswith('_door'): p = palette_entry['Properties'] if p['hinge'] == 'left': data |= 0x10 + if p['open'] == 'true': data |= 0x04 if p['half'] == 'upper': data |= 0x08 data |= { - 'north': 0x01, - 'west': 0x04, - 'south': 0x03, - 'east': 0x02, + 'north': 0x03, + 'west': 0x02, + 'south': 0x01, + 'east': 0x00, }[p['facing']] elif key.endswith('_trapdoor'): p = palette_entry['Properties']