0

world: bandaid fix for double stone brick slabs

This code badly needs a rewrite, we're just altering code path and
data all over the place and this isn't okay.
This commit is contained in:
Nicolas F
2019-03-25 21:42:08 +01:00
parent ed9a9930db
commit 79754b367c

View File

@@ -835,7 +835,10 @@ class RegionSet(object):
if palette_entry['Properties']['type'] == 'top':
data += 8
elif palette_entry['Properties']['type'] == 'double':
block = 125
if 'oak' in key:
block = 125
elif key == 'minecraft:stone_brick_slab':
block = 98
elif key in ['minecraft:ladder', 'minecraft:chest', 'minecraft:ender_chest', 'minecraft:trapped_chest', 'minecraft:furnace']:
facing = palette_entry['Properties']['facing']
data = {'north': 2, 'south': 3, 'west': 4, 'east': 5}[facing]