mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 22:29:07 +02:00
BlockType: replace list of booleans with flags bitfield
This commit is contained in:
parent
446e74791f
commit
ef4b6eac02
8 changed files with 800 additions and 787 deletions
|
@ -42,7 +42,7 @@ for name, info in blocks.items():
|
|||
'opaque': False,
|
||||
'grass': False,
|
||||
'foliage': False,
|
||||
'blue': False,
|
||||
'water': False,
|
||||
}
|
||||
|
||||
if info is None:
|
||||
|
@ -54,7 +54,7 @@ for name, info in blocks.items():
|
|||
output[id]['opaque'] = True
|
||||
output[id]['grass'] = info.get('grass', False)
|
||||
output[id]['foliage'] = info.get('foliage', False)
|
||||
output[id]['blue'] = info.get('blue', False)
|
||||
output[id]['water'] = info.get('water', False)
|
||||
|
||||
with open(sys.argv[3], 'w') as f:
|
||||
json.dump(output, f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue