0

Amend observer rendering

- Allow rendering of powered observers with appropriate back texture
This commit is contained in:
Joseph Camp
2020-05-03 22:39:59 +00:00
parent 0bb4785008
commit b2244f5b76
2 changed files with 23 additions and 32 deletions

View File

@@ -1027,7 +1027,8 @@ class RegionSet(object):
p = palette_entry['Properties']
data = {'down': 0, 'up': 1, 'north': 2, 'south': 3, 'west': 4, 'east': 5}[p['facing']]
if ((key.endswith('piston') and p.get('extended', 'false') == 'true') or
(key == 'minecraft:piston_head' and p.get('type', 'normal') == 'sticky')):
(key == 'minecraft:piston_head' and p.get('type', 'normal') == 'sticky') or
(key == 'minecraft:observer' and p.get('powered', 'false') == 'true')):
data |= 0x08
elif key.endswith('_log') or key.endswith('_wood') or key == 'minecraft:bone_block':
axis = palette_entry['Properties']['axis']