From fc17552cdc82ea983518246d130d7ec8f692c47a Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Sun, 4 Feb 2024 16:13:31 +0000 Subject: [PATCH] Fix POI generation for hanging signs --- overviewer_core/aux_files/genPOI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index 6ac4376b..c0ec0e46 100644 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -131,7 +131,7 @@ def parseBucketChunks(task_tuple): try: data = rset.get_chunk(b[0], b[1]) for poi in itertools.chain(data.get('TileEntities', []), data.get('Entities', []), data.get('block_entities', [])): - if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign': + if poi['id'] in ['Sign', 'minecraft:sign', 'minecraft:hanging_sign']: poi = signWrangler(poi) for name, filter_function in filters: ff = bucketChunkFuncs[filter_function] @@ -199,7 +199,7 @@ def handleEntities(rset, config, config_path, filters, markers): try: data = rset.get_chunk(x, z) for poi in itertools.chain(data.get('TileEntities', []), data.get('Entities', []), data.get('block_entities', [])): - if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign': # kill me + if poi['id'] in ['Sign', 'minecraft:sign', 'minecraft:hanging_sign']: # kill me poi = signWrangler(poi) for name, __, filter_function, __, __, __ in filters: result = filter_function(poi)