Fixing handling of torches/redstone torches on walls
This commit is contained in:
@@ -775,11 +775,14 @@ class RegionSet(object):
|
|||||||
data |= 4
|
data |= 4
|
||||||
elif axis == 'z':
|
elif axis == 'z':
|
||||||
data |= 8
|
data |= 8
|
||||||
elif key in ['minecraft:redstone_torch','minecraft:redstone_wall_torch', 'minecraft:wall_torch']:
|
elif key in ['minecraft:redstone_torch','minecraft:redstone_wall_torch','minecraft:wall_torch']:
|
||||||
if palette_entry['Properties']['lit'] == 'true':
|
if key.startswith('minecraft:redstone_') and palette_entry['Properties']['lit'] == 'true':
|
||||||
block += 1
|
block += 1
|
||||||
facing = palette_entry['Properties'].get('facing', 'up')
|
if key.endswith('wall_torch'):
|
||||||
data = {'east': 1, 'west': 2, 'south': 3, 'north': 4, 'up': 5}[facing]
|
facing = palette_entry['Properties'].get('facing')
|
||||||
|
data = {'east': 1, 'west': 2, 'south': 3, 'north': 4}[facing]
|
||||||
|
else:
|
||||||
|
data = 5
|
||||||
elif key == 'minecraft:vine':
|
elif key == 'minecraft:vine':
|
||||||
p = palette_entry['Properties']
|
p = palette_entry['Properties']
|
||||||
if p['south'] == 'true': data |= 1
|
if p['south'] == 'true': data |= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user