fix gate orientation
This commit is contained in:
@@ -727,6 +727,11 @@ class RegionSet(object):
|
|||||||
if key in ['minecraft:redstone_ore', 'minecraft:redstone_lamp']:
|
if key in ['minecraft:redstone_ore', 'minecraft:redstone_lamp']:
|
||||||
if palette_entry['Properties']['lit'] == 'true':
|
if palette_entry['Properties']['lit'] == 'true':
|
||||||
block += 1
|
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'):
|
elif key.endswith('rail'):
|
||||||
shape = palette_entry['Properties']['shape']
|
shape = palette_entry['Properties']['shape']
|
||||||
print('shape:', shape)
|
print('shape:', shape)
|
||||||
|
|||||||
Reference in New Issue
Block a user