hube12 / DecompilerMC

This repository allows you to decompile any minecraft version that was published after 19w36a without any 3rd party mappings, you just need to execute the script or the executable (see releases)! Thanks mojang to have published proguard mappings
Other
642 stars 54 forks source link

Decompiling server broke with 21w39a #39

Closed misode closed 3 years ago

misode commented 3 years ago

As mentioned in the changelog. Only the bootstrap Main class is decompiled now. image

hube12 commented 3 years ago

this will be fixed in a few hours

misode commented 3 years ago

@hube12 Sorry to bother, but any updates?

hube12 commented 3 years ago

@hube12 Sorry to bother, but any updates?

Oh yeah, sorry forgot to push, here it is

hube12 commented 3 years ago

it's really a simple fix, just parse META-INF/versions.list then go in META-INF/versions/{path} and extract that one and substitute it to the other one. (I don't care about the libs)

misode commented 3 years ago

@hube12 The solution is not that simple, as now the decompiler doesn't have any knowledge of the libraries, writing warnings and giving slightly different results code-wise.

The real solution probably involves using the contents of META-INF/classpath-joined as described in the changelog.

image image

hube12 commented 3 years ago

I mean to me both are readable but I do get where you are coming from, I will later make back a full archive with the libs to give to the decompiler