Skip to content

External script edits don't sync until restart when disk folder is manually created or first used at runtime #61

@zerodegress

Description

@zerodegress

Issue type:

  • 🐛 Bug

Short description:

When a script disk folder is created manually, or when a disk is used for the first time during a game session, external edits to script files inside that disk do not sync into the game until the game/server is restarted.

Steps to reproduce the problem:

  1. Start a world/server with Integrated Scripting.
  2. Either:
    Manually create a disk folder under /integratedscripting/scripting-disks/ (e.g., 99), or
    Ensure a certain disk has never been used before (no folder exists yet).
  3. In-game, use that disk (e.g., create a script via the Scripting Terminal).
  4. Externally edit the created script file and save.
  5. Observe that the changes do not appear in-game.
  6. Restart the world/server.
  7. Again edit the same file externally while the game is running.
  8. This time, the changes sync correctly.

Expected behaviour:

External script edits should always sync immediately, regardless of when or how the disk folder was created (by the mod automatically, pre-existing, or manually by the user). No restart should be required.


Versions:

  • This mod: 1.0.21
  • Minecraft: 1.21.1
  • Mod loader version: 21.1.230

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions