0

world: fix potatoes and carrots growth stages

Concerns #1486

Also get rid of an obviously broken leftover wheat elif.
This commit is contained in:
Nicolas F
2019-03-16 17:47:49 +01:00
parent f7ab92917f
commit 99eebd5b69

View File

@@ -826,8 +826,6 @@ class RegionSet(object):
elif key in ('minecraft:sunflower', 'minecraft:lilac', 'minecraft:tall_grass', 'minecraft:large_fern', 'minecraft:rose_bush', 'minecraft:peony'):
if palette_entry['Properties']['half'] == 'upper':
data |= 0x08
elif key == 'minecraft_wheat':
data = int(palette_entry['Properties']['age'])
elif key in ['minecraft:stone_slab', 'minecraft:sandstone_slab', 'minecraft:oak_slab',
'minecraft:cobblestone_slab', 'minecraft:brick_slab',
'minecraft:stone_brick_slab', 'minecraft:nether_brick_slab',
@@ -942,7 +940,7 @@ class RegionSet(object):
if p['open'] == 'true': data |= 0x04
if p['half'] == 'top': data |= 0x08
elif key in ['minecraft:beetroots', 'minecraft:melon_stem', 'minecraft:wheat',
'minecraft:pumpkin_stem']:
'minecraft:pumpkin_stem', 'minecraft:potatoes', 'minecraft:carrots']:
data = palette_entry['Properties']['age']
return (block, data)