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
|
if p['east'] == 'true': data |= 8
|
||||||
elif key.endswith('_stairs'):
|
elif key.endswith('_stairs'):
|
||||||
facing = palette_entry['Properties']['facing']
|
facing = palette_entry['Properties']['facing']
|
||||||
if facing == 'south': data |= 0x60
|
if facing == 'south': data = 2
|
||||||
elif facing == 'east': data |= 0x30
|
elif facing == 'east': data = 0
|
||||||
elif facing == 'north': data |= 0x18
|
elif facing == 'north': data = 3
|
||||||
elif facing == 'west': data |= 0x48
|
elif facing == 'west': data = 1
|
||||||
|
if palette_entry['Properties']['half'] == 'top':
|
||||||
|
data |= 0x4
|
||||||
elif key.endswith('_door'):
|
elif key.endswith('_door'):
|
||||||
p = palette_entry['Properties']
|
p = palette_entry['Properties']
|
||||||
if p['hinge'] == 'left': data |= 0x10
|
if p['hinge'] == 'left': data |= 0x10
|
||||||
@@ -947,7 +949,6 @@ class RegionSet(object):
|
|||||||
elif key in ['minecraft:beetroots', 'minecraft:melon_stem', 'minecraft:wheat',
|
elif key in ['minecraft:beetroots', 'minecraft:melon_stem', 'minecraft:wheat',
|
||||||
'minecraft:pumpkin_stem', 'minecraft:potatoes', 'minecraft:carrots']:
|
'minecraft:pumpkin_stem', 'minecraft:potatoes', 'minecraft:carrots']:
|
||||||
data = palette_entry['Properties']['age']
|
data = palette_entry['Properties']['age']
|
||||||
|
|
||||||
return (block, data)
|
return (block, data)
|
||||||
|
|
||||||
def get_type(self):
|
def get_type(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user