world: fix stair orientations
Concerns issue #1486. Inner/outer corners apparently have their data from ancil data instead of Minecraft's stuff, so we might need to fix that in the future.
This commit is contained in:
@@ -925,10 +925,12 @@ class RegionSet(object):
|
||||
if p['east'] == 'true': data |= 8
|
||||
elif key.endswith('_stairs'):
|
||||
facing = palette_entry['Properties']['facing']
|
||||
if facing == 'south': data |= 0x60
|
||||
elif facing == 'east': data |= 0x30
|
||||
elif facing == 'north': data |= 0x18
|
||||
elif facing == 'west': data |= 0x48
|
||||
if facing == 'south': data = 2
|
||||
elif facing == 'east': data = 0
|
||||
elif facing == 'north': data = 3
|
||||
elif facing == 'west': data = 1
|
||||
if palette_entry['Properties']['half'] == 'top':
|
||||
data |= 0x4
|
||||
elif key.endswith('_door'):
|
||||
p = palette_entry['Properties']
|
||||
if p['hinge'] == 'left': data |= 0x10
|
||||
@@ -947,7 +949,6 @@ class RegionSet(object):
|
||||
elif key in ['minecraft:beetroots', 'minecraft:melon_stem', 'minecraft:wheat',
|
||||
'minecraft:pumpkin_stem', 'minecraft:potatoes', 'minecraft:carrots']:
|
||||
data = palette_entry['Properties']['age']
|
||||
|
||||
return (block, data)
|
||||
|
||||
def get_type(self):
|
||||
|
||||
Reference in New Issue
Block a user