genPOI/docs: Handle new sign id values
Minecraft now uses minecraft:sign as its id for signs, but also uses Sign for older versions or chunks that have not yet been updated. Change the genPOI sign wrangling code and the documentation to reflect this change. Fixes #1340.
This commit is contained in:
@@ -25,7 +25,7 @@ The function should accept one argument (a dictionary, also know as an associati
|
||||
array), and return a string representing the text to be displayed. For example::
|
||||
|
||||
def signFilter(poi):
|
||||
if poi['id'] == 'Sign':
|
||||
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
|
||||
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
|
||||
|
||||
If a POI doesn't match, the filter can return None (which is the default if a python
|
||||
|
||||
Reference in New Issue
Block a user