SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

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

Pathoschild opened this issue ยท 0 comments

commented

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.