Skip to content

Commit

Permalink
Merge pull request #28 from stwalkerster/hanging-sign-poi
Browse files Browse the repository at this point in the history
Fix POI generation for hanging signs
  • Loading branch information
Gregory-AM authored Feb 5, 2024
2 parents 586c16f + fc17552 commit 45bad4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overviewer_core/aux_files/genPOI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 45bad4d

Please sign in to comment.