⁠
joe: Add UNSURE option to MissingLVTChecker, and don't warn about not using `Local.name` when unsure. Also add inspections about using `Local.name` when there is definitely no LVT. Fixes #2646
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- <p>
- Reports <code>@Local</code> using a variable name where the target class does not have local variable names at runtime
- </p>
- <!-- tooltip end -->
- <p>
- Local variable names are read from the local variable table of the target class at runtime. Obfuscated versions of
- Minecraft (1.21.11 and below) don't have a local variable table at runtime, even if one is present in the development
- environment, so the injector will fail to find the variable. Use an ordinal or index instead.
- </p>
- </body>
- </html>