Modernize Java code (#997)

Co-authored-by: slprime <31038811+slprime@users.noreply.github.com>
This commit is contained in:
Nikolay S.andslprime authored and GitHub committed 2026-08-10 14:55:40 +03:00
1 parent 6c3db443d7
commit d70a47a3a4
36 files changed
+108 -141

No files matched your search

@@ -382,7 +382,7 @@ public class DebugHandlerWidget extends Widget {
public void update() {
final GuiContainer gui = NEIClientUtils.getGuiContainer();
if (this.showWidget && gui instanceof GuiRecipe recipe) {
if (this.showWidget && gui instanceof GuiRecipe<?>recipe) {
if (this.record == null || !this.record.handlerKey.equals(getHandlerID(recipe.getHandler()))) {
final IRecipeHandler handler = recipe.getHandler();