WorldEdit

WorldEdit

43M Downloads

ZIP Storage Restore bugged with TrueZIP (possible solution inside)

LadyCailinBot opened this issue ยท 0 comments

commented

WORLDEDIT-2676 - Reported by megge

Hi there,

when useing TrueZIP, I can't restore compressed backups because of "world not present in zip file". With the standard, builtin zip I can restore without problems.

Compare
[Java ZIP|https://github.com/sk89q/worldedit/blob/master/src/main/java/com/sk89q/worldedit/data/ZippedMcRegionChunkStore.java#L101] Line 101-113 to [True ZIP|https://github.com/sk89q/worldedit/blob/master/src/main/java/com/sk89q/worldedit/data/TrueZipMcRegionChunkStore.java#L103] Line 103-117

I think the problem is line 109, java Pattern worldPattern = Pattern.compile(worldname + "\\$"); // ... if (worldPattern.matcher(worldname).matches())

because this will never happen (and doesn't make any sense, because ```
worldname