Skip to content

[BUG] Re-exporting into existing datapack clears minecraft tick and load functions #358

@iphaic

Description

@iphaic

Describe the bug
Re-exporting into existing datapack clears Minecraft tick and load functions. This was tested using the 1.21.0 export, I am unsure if it occurs on other export versions but it should probably be looked into for 1.21.2 & 1.21.4 as well

To Reproduce

  1. Create a blank datapack
  2. Export a project (again, this was using export version 1.21.0)
  3. Observe that the pack works as intended, and the Minecraft tick and load functions have the appropriate functions
  4. Re-export the same project.
  5. Notice that the Minecraft tick & load functions have had all functions in the array removed, and all the remains is a blank array

Expected behavior
A re-export should not clear the Minecraft tick and load functions

Error Message

N/A

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 1.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions