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:
@@ -117,7 +117,7 @@ def parseBucketChunks((bucket, rset, filters)):
|
||||
try:
|
||||
data = rset.get_chunk(b[0],b[1])
|
||||
for poi in itertools.chain(data['TileEntities'], data['Entities']):
|
||||
if poi['id'] == 'Sign':
|
||||
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign':
|
||||
poi = signWrangler(poi)
|
||||
for name, filter_function in filters:
|
||||
ff = bucketChunkFuncs[filter_function]
|
||||
@@ -166,7 +166,7 @@ def handleEntities(rset, config, config_path, filters, markers):
|
||||
try:
|
||||
data = rset.get_chunk(x, z)
|
||||
for poi in itertools.chain(data['TileEntities'], data['Entities']):
|
||||
if poi['id'] == 'Sign': # kill me
|
||||
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign': # kill me
|
||||
poi = signWrangler(poi)
|
||||
for name, __, filter_function, __, __, __ in filters:
|
||||
result = filter_function(poi)
|
||||
|
||||
Reference in New Issue
Block a user