Skip to content

Commit

Permalink
world: fix door block translation code
Browse files Browse the repository at this point in the history
Fixes #1697.
  • Loading branch information
CounterPillow committed Dec 23, 2019
1 parent ed46082 commit 2b699d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions overviewer_core/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,12 +1110,13 @@ def _get_block(self, palette_entry):
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']
Expand Down

0 comments on commit 2b699d0

Please sign in to comment.