0

fix gate orientation

This commit is contained in:
RedSparr0w
2018-09-20 21:42:26 +12:00
parent 6daefbedac
commit 1e0b2b1fd5

View File

@@ -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)