Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-157988

Exported variables are not shared

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.19.70.22 Preview, 1.19.40.23 Preview, 1.19.40.22 Preview, 1.19.30.21 Preview, 1.19.10.24 Preview, 1.19.10.23 Preview, 1.19.0, 1.19.2 Hotfix, 1.19.11 Hotfix, 1.19.20, 1.19.30, 1.19.60
    • Unconfirmed
    • Multiple

      Suppose you have three files
      File 1 only exports variables
      In File 2 and File 3, you can change the values of the variables and print them out respectively

      If you change the value of a variable in file 2, the output of file 2 is normal, but file 3 still does not change the value of that variable
      Conversely, if you change the value of a variable in file 3, the output of file 3 is normal, but file 2 still has the value you changed previously

      Expected Behavior:

      • Exported variables share values

      Actual Behavior:

      • Exported variables are not shared

      How to Test:

      1. Apply pack and create world
      2. Follow the steps below to chat (ignore the instructions in parentheses)

      • 1 (Set the value of variable 1 to 1 in file 2)
      • print (Print the values of the variables in file 2)
      • print2 (Prints values of variables from file 3)
      • 13 (Set the value of variable 1 to 3 in file 3)
      • print (same as described above)
      • print2 (same as described above)

      3. If you checked the bug in the chat above, change the number and check other kinds of variables

      Test File:

            namsic namsic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: