update prompt

This commit is contained in:
bridge
2025-09-21 17:25:27 +08:00
parent 938f85db9a
commit 40ef5b9cb6
10 changed files with 73 additions and 19 deletions

View File

@@ -87,7 +87,7 @@ def draw_avatars_and_pick_hover(
mouse_x, mouse_y = pygame_mod.mouse.get_pos()
hovered = None
min_dist = float("inf")
for avatar_id, avatar in simulator.avatars.items():
for avatar_id, avatar in simulator.world.avatar_manager.avatars.items():
if get_display_center is not None:
cx_f, cy_f = get_display_center(avatar, tile_size, margin)
cx, cy = int(cx_f), int(cy_f)