mirror of
https://gitlab.com/luk3yx/minetest-formspec_ast.git
synced 2025-10-23 21:03:06 +02:00
Fix bgcolor[].
This commit is contained in:
parent
09d076e1d2
commit
125f259a13
File diff suppressed because one or more lines are too long
@ -86,6 +86,13 @@ def _background9_hook(params):
|
||||
param.append(('middle_y2', 'number'))
|
||||
yield params
|
||||
|
||||
# Fix bgcolor
|
||||
@hook('bgcolor')
|
||||
def _bgcolor_hook(params):
|
||||
yield params
|
||||
for i in range(1, len(params)):
|
||||
yield params[:-i]
|
||||
|
||||
def _raw_parse(data):
|
||||
data = data.split('\nElements\n--------\n', 1)[-1].split('\n----', 1)[0]
|
||||
for line in data.split('\n'):
|
||||
|
Loading…
Reference in New Issue
Block a user