Skip to content

Building interiors constructed by a farmhand not tracked correctly for events until world is restarted #710

@Pathoschild

Description

@Pathoschild

When a farmhand constructs a new farm building, multiplayer sync on other players continuously replaces the Building::indoors value for farm buildings with a new location instance.

That breaks events since SMAPI ends up watching an old location instance that doesn't have the new changes, and SMAPI can't just rebuild the location tracker (since that would lose any changes done as part of the sync).

Repro steps

  1. Install Automate and CJB Cheats Menu.
  2. Enable verbose mode in smapi-internal/config.json.
  3. Launch the game twice: once to host a multiplayer server, and once to join it as a farmhand.
  4. As the farmhand, construct a new shed with CJB Cheats Menu's instant build enable.
    The host console should show a verbose Automate log about a new location.
  5. As the host, enter the shed and put down some chests/machines/inputs for Automate.
    The host console doesn't show any Automate logs about object changes, and automation doesn't work in the shed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is an unintended error or behavior that can be addressed with specific development changes.externalThis ticket is about an issue with (or changes for) something outside SMAPI itself.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions