Closed ichttt closed 4 years ago
The problem is that it affects the operation of Native Java and not the Forge API
What? This is clearly a decompiler artifact. This isn't Forge.. This issue tracker is for Decompiler artifacts.
Yes, cleaning up string switches like we do enum switches would be nice. Just not something i've looked into. Looks like a simple pattern tho, two switched, 1st over var.hashCode with all cases setting var2. Then 2nd immediately after being over var2.
Added in 5132d2b6fe04a661ffa2d84df53a25ab13e78e62
See DimensionGeneratorSettings for an example, which currently looks like this:
The whole upper switch can be removed, and the lower switch should switch on the string.