mojira.dev
MC-279522

GameTest entrypoint doesn't load zip datapacks

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

Attachments

Comments 0

No comments.

MiniDigger

etanaratsastaja

Confirmed

Platform

Important

Debug, Dedicated Server

25w03a

25w04a

Retrieved