0

Fix fence connection

- use ingame data
This commit is contained in:
Bernd Buschinski
2021-07-08 18:29:03 +02:00
parent f16aa05ed0
commit 327b4711db
5 changed files with 36 additions and 68 deletions

View File

@@ -1303,10 +1303,14 @@ class RegionSet(object):
data = p['rotation']
elif key.endswith('_fence'):
p = palette_entry['Properties']
if p['north'] == 'true': data |= 1
if p['west'] == 'true': data |= 2
if p['south'] == 'true': data |= 4
if p['east'] == 'true': data |= 8
if p['north'] == 'true':
data |= 1
if p['east'] == 'true':
data |= 2
if p['south'] == 'true':
data |= 4
if p['west'] == 'true':
data |= 8
elif key.endswith('_stairs'):
facing = palette_entry['Properties']['facing']
if facing == 'south': data = 2