MaxPixelStudios / MinecraftDecompiler

Minecraft Decompiler. A useful tool/library to deobfuscate and decompile Minecraft(or any jar file) through popular mappings and various decompilers. Or use it as a lib to process obfuscation mappings such as converting a mapping to another format
GNU General Public License v3.0
327 stars 19 forks source link

[Enhancement] Support Quilt Mappings #130

Closed ix0rai closed 8 months ago

ix0rai commented 8 months ago

Support should be added for https://github.com/QuiltMC/quilt-mappings, a collection of mappings based on Yarn using the hashed format instead of intermediary.

XiaoPangxie732 commented 8 months ago

Since Quilt mappings use the Tiny format, MCD should already support it. Please feel free to report any issues you encounter

ix0rai commented 8 months ago

lovely, thanks!

XiaoPangxie732 commented 8 months ago

btw, there is a known issue when using quilt mappings with option -r that option would regenerate all variable names not provided by mappings, and would also check if the name is duplicated(to avoid the generator generating names that duplicate with mappings). however, many lambda methods in quilt mappings have var names that duplicate with methods that contain them, which would lead the checker to issue lots of warnings you can choose to completely trust the mappings by not passing -r, I can't fix this because that's not the problem on my end.