Make sign policy distance unlimited

This commit is contained in:
Tanner committed 2026-11-10 18:45:53 +00:00
1 parent 5c6c08e3c0
commit 315bc212dc
2 files changed
+19 -2

No files matched your search

+3 -2
View File
@@ -67,7 +67,8 @@ class World:
if hasattr(chunks, 'block_entities_snapshot') else
dict(chunks.block_entities))
for position, entity in entities.items():
if utils.phyp(center, position) > distance:
if (distance is not None and
utils.phyp(center, position) > distance):
continue
get_block_at = getattr(self.g.chunks, 'get_block_at', None)
if callable(get_block_at):
@@ -313,7 +314,7 @@ class World:
result.sort(key=lambda chest: utils.phyp(center, chest['position']))
return result
def sign_policies(self, bot_name, distance=64):
def sign_policies(self, bot_name, distance=None):
"""Parse sign policies addressed to this bot or its numbered group."""
bot_name = str(bot_name).casefold()
group_name = (bot_name[:-1] if len(bot_name) > 1 and