SMAPI icon indicating copy to clipboard operation
SMAPI copied to clipboard

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

Open Pathoschild opened this issue 4 years ago • 0 comments

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.

Pathoschild avatar May 03 '20 18:05 Pathoschild