0

world: fix door block translation code

Fixes #1697.
This commit is contained in:
Nicolas F
2019-12-23 19:06:51 +01:00
parent ed46082e16
commit 2b699d0355

View File

@@ -1110,12 +1110,13 @@ class RegionSet(object):
elif key.endswith('_door'): elif key.endswith('_door'):
p = palette_entry['Properties'] p = palette_entry['Properties']
if p['hinge'] == 'left': data |= 0x10 if p['hinge'] == 'left': data |= 0x10
if p['open'] == 'true': data |= 0x04
if p['half'] == 'upper': data |= 0x08 if p['half'] == 'upper': data |= 0x08
data |= { data |= {
'north': 0x01, 'north': 0x03,
'west': 0x04, 'west': 0x02,
'south': 0x03, 'south': 0x01,
'east': 0x02, 'east': 0x00,
}[p['facing']] }[p['facing']]
elif key.endswith('_trapdoor'): elif key.endswith('_trapdoor'):
p = palette_entry['Properties'] p = palette_entry['Properties']