0

Fix cake rendering

- Use 'bites' property to determine which cut of cake to render
This commit is contained in:
Joseph Camp
2020-02-13 14:52:53 +00:00
parent 63eefb2423
commit 16753aad79
2 changed files with 48 additions and 39 deletions

View File

@@ -1163,6 +1163,8 @@ class RegionSet(object):
elif key == 'minecraft:structure_block':
block_mode = palette_entry['Properties'].get('mode', 'save')
data = {'save': 0, 'load': 1, 'corner': 2, 'data': 3}.get(block_mode, 0)
elif key == 'minecraft:cake':
data = int(palette_entry['Properties'].get('bites', '0'))
return (block, data)