From 1e0b2b1fd5fdf2ec5cec6141407a7e22156813c4 Mon Sep 17 00:00:00 2001 From: RedSparr0w Date: Thu, 20 Sep 2018 21:42:26 +1200 Subject: [PATCH] fix gate orientation --- overviewer_core/world.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 1eea314..1279144 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -727,6 +727,11 @@ class RegionSet(object): if key in ['minecraft:redstone_ore', 'minecraft:redstone_lamp']: if palette_entry['Properties']['lit'] == 'true': block += 1 + elif key.endswith('gate'): + facing = palette_entry['Properties']['facing'] + data = {'south': 0, 'west': 1, 'north': 2, 'east': 3}[facing] + if palette_entry['Properties']['open'] == 'true': + data += 4 elif key.endswith('rail'): shape = palette_entry['Properties']['shape'] print('shape:', shape)