QuiltMC / enigma

A deobfuscation/remapping tool for Java bytecode, fork of cuchaz's Enigma.
GNU Lesser General Public License v3.0
56 stars 31 forks source link

Reports wrong type for (some?) lambda parameters #201

Open supersaiyansubtlety opened 6 months ago

supersaiyansubtlety commented 6 months ago

It's reporting type ItemStack for slot which is an EquipmentSlot.

If you move the cursor to the stack param, the type is missing entirely.

It seems like the index is just off by one?

java_t3ld82Xnkc

ix0rai commented 6 months ago

related to #189

supersaiyansubtlety commented 1 month ago

This is happening on https://github.com/QuiltMC/quilt-mappings/commit/3f6043b663243099a0ae112421f01f52342c2750

java_C6hWjSridv

arg2's type should be net/minecraft/predicate/DataComponentPredicate.Builder, but it displays the type of potion instead

ix0rai commented 1 month ago

of course

ix0rai commented 1 month ago

my 'fix' was to swap the default when we don't have access data to non-static, which flips the issue i'll figure out why we don't have access data for that method