Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-186857

"/datapack disable" shows success message after a data pack is disabled rather than after it is run, causing inconsistencies with "/datapack enable"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2
    • Unconfirmed
    • Commands

      The bug

      When using /datapack disable to disable a data pack, the "Disabled data pack" message is not shown after the command is run but instead after the data pack is successfully disabled. This is inconsistent with /datapack enable as it shows the "Enabled data pack" message right after it is used. This is not the case in 20w21a and previous snapshots.

      If it is intended, then /datapack enable should show its success message after a data pack is successfully enabled to be consistent with /datapack disable. However, it would be strange especially with functions in load.json that have /say or other similar commands.

      Causes

      This might be caused by the new loading changes with data packs.

      How to reproduce

      1. Use the following command to enable command output:
        /gamerule sendCommandFeedback false
      2. Use /datapack enable to enable a data pack.
        The "Enabled data pack" message is shown after the command is run.
      3. Use /datapack disable to disable the data pack.
        The "Disabled data pack" message is shown after the data pack is disabled.

            Unassigned Unassigned
            jirauser283547 user-a4a49 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: