0

Amend farmland rendering

- Use 'moisture' property to determine when to render farmland as moist
This commit is contained in:
Joseph Camp
2020-05-02 22:30:33 +00:00
parent 16753aad79
commit 6d5ccdfd54
2 changed files with 10 additions and 6 deletions

View File

@@ -1165,6 +1165,9 @@ class RegionSet(object):
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'))
elif key == 'minecraft:farmland':
# A moisture level of 7 has a different texture from other farmland
data = 1 if palette_entry['Properties'].get('moisture', '0') == '7' else 0
return (block, data)