0

Amend lectern rendering

- Replaces exising implementation with a texture that better
  resembles the in game block, accounting for its facing & whether
  a book has been placed or not
This commit is contained in:
Joseph Camp
2020-03-21 00:43:30 +00:00
parent cde059e9a6
commit 9365cce160
2 changed files with 140 additions and 6 deletions

View File

@@ -1142,6 +1142,11 @@ class RegionSet(object):
p = palette_entry['Properties']
data = {'south': 0, 'west': 1, 'north': 2, 'east': 3}[p['facing']]
data |= {'floor': 0, 'wall': 4, 'ceiling': 8}[p['face']]
elif key == 'minecraft:lectern':
p = palette_entry['Properties']
data = {'south': 0, 'west': 1, 'north': 2, 'east': 3}[p['facing']]
if p['has_book'] == 'true':
data |= 4
return (block, data)