Giter Club home page Giter Club logo

Comments (5)

XiaoPangxie732 avatar XiaoPangxie732 commented on August 17, 2024

then im guessing this is also a fernflower issue. try decompiling with the default decompiler(simply replace --decompile fernflower with --decompile or -d)

from minecraftdecompiler.

thomas-ej-worm avatar thomas-ej-worm commented on August 17, 2024

Thanks. This solved nested classes not getting decompiled but leads to other problems.

E.g. in com.mojang.math.OctahedralGroup the renamed local variables (method parameters) are not decompiled correctly:

private OctahedralGroup(final String param3, final SymmetricGroup3 param4, final boolean param5, final boolean param6, final boolean param7) {
      this.name = s;
      this.invertX = flag;
      this.invertY = flag1;
      this.invertZ = flag2;
      this.permutation = symmetricgroup3;
      this.transformation = new Matrix3f().scaling(flag ? -1.0F : 1.0F, flag1 ? -1.0F : 1.0F, flag2 ? -1.0F : 1.0F);
      this.transformation.mul(symmetricgroup3.transformation());
   }

s, flag, and so on are unknown symbols, because function parameters are called paramX.

With using FernFlower as decompiler the rename option of MinecraftDecompiler is handled correctly:

private OctahedralGroup(final String s, final SymmetricGroup3 symmetricgroup3, final boolean flag, final boolean flag1, final boolean flag2) {
        this.name = s;
        this.invertX = flag;
        this.invertY = flag1;
        this.invertZ = flag2;
        this.permutation = symmetricgroup3;
        this.transformation = (new Matrix3f()).scaling(flag ? -1.0F : 1.0F, flag1 ? -1.0F : 1.0F, flag2 ? -1.0F : 1.0F);
        this.transformation.mul(symmetricgroup3.transformation());
    }

from minecraftdecompiler.

XiaoPangxie732 avatar XiaoPangxie732 commented on August 17, 2024

https://github.com/MaxPixelStudios/MinecraftDecompiler/actions/runs/9148385977
you can download and use the artifact in this run
this version uses an updated version of vineflower

from minecraftdecompiler.

XiaoPangxie732 avatar XiaoPangxie732 commented on August 17, 2024

an alternative is to use the user-defined decompiler:
put the config file at decompiler/decompiler.properties
follow the config file and put your decompiler jar at the right path

decompiler.txt
github doesn't allow uploading .properties files, you need to rename it yourself

if you did everything right, you will get something like this except that vineflower is version 1.10.1
image
then replace arg -d with -d user-defined and run mcd

from minecraftdecompiler.

XiaoPangxie732 avatar XiaoPangxie732 commented on August 17, 2024

Close as this is a decompiler error, which is not the problem on this project's end.

Integrated decompilers may be outdated, but you can use their latest version through the user-defined decompiler feature.

from minecraftdecompiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.