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

GameTest entrypoint doesn't load zip datapacks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 25w04a
    • 25w03a
    • None
    • Confirmed
    • Debug, Dedicated Server
    • Important
    • Platform

      Repro:

       

      this is what I see

      [20:03:19] [main/INFO]: Running GameTestMain with cwd 'F:\Projects\PaperTooling\mache\versions\25w03a\test', universe path 'gametestserver'
      [20:03:24] [main/INFO]: Loaded 1372 recipes

      this is what I want to see

      [20:03:19] [main/INFO]: Running GameTestMain with cwd 'F:\Projects\PaperTooling\mache\versions\25w03a\test', universe path 'gametestserver'
      [20:03:23] [main/INFO]: Included zip pack  mini.zip
      [20:03:24] [main/INFO]: Loaded 1372 recipes

       

      code analysis: 

      GameTestMainUtil#copyPacks has the bug, this is wrong:

      } else if (path2.endsWith(".zip")) {

      this is the fix:

      } else if (path2.toString().endsWith(".zip")) {

      additionally, in the log about the zip pack an extra space sneaked in

            Dat12 [Mojang] etanaratsastaja
            MiniDigger MiniDigger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: